Hi, this patch add a checkbox to endless scroll's pager options in views ui to disable autoload and use a More link to load (more) content in the page.
The More link is added via javascript preserving the original pager when javascript is not enabled.
The code could use some polishing and some enhancements (More text is not translatable atm) but the patched module is working fine, at least for now.
If somebody is willing to help we could build a useful improvement to this module.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Remon’s picture

Category: task » feature

Thanks for your efforts :) , I'll check this patch out and see what I can do.

Remon’s picture

Status: Needs review » Closed (won't fix)

Honestly I think that a more link is out of the scope of this module, if someone wants to disable infinite scrolling, it should be better disabling this module all together.

rodrigoaguilera’s picture

the functionality is similar but reacting to a "more" link instead of the scrolling event. I can't find any other module to do this. it's a nice way of paging but if you have something at the bottom of the page it's ignored

tdway’s picture

This would be a great feature. Subscribing.

meishme’s picture

+1

This would be useful. Now if only the patch on top worked with D7.

Remon’s picture

Status: Closed (won't fix) » Active

I think it deserves some love.

vimalramaka’s picture

subscribe. Drupal 7 version deserves some love too!

EndEd’s picture

subscribe

gratefulsk’s picture

+1

This would be awesome for Drupal 7.

rodrigoaguilera’s picture

this is solved in this module http://drupal.org/project/views_load_more

and have support for infinite scrolling with the waypoints modules

but since the functionality is similar I think the modules should be merged ¿Should I open an issue for this?

cableman0408’s picture

I have create a patch for this module 7.x version that allows the user to select automatically scroll or scroll by clicking an user defined link (the option is available in the views UI).

(Removed comment about the other module)

rodrigoaguilera’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Active » Needs review

Not very apropiate to disclose here but you have to enable ajax with views_load_more on the view you want to paginate.

If this patch works both modules will have duplicate functionality

Hydra’s picture

sub

mh86’s picture

re-rolled patch from #11 that works with drush

mh86’s picture

actually it wasn't the patch, rather may drush definition

aa2007’s picture

Please include this patch in the next release.

Hydra’s picture

Status: Needs review » Needs work

The patch isn't aplying against the dev version. With patch -p1 it's kinda working, but the link option doesn't work for me...
I would like to see this in the next release as well, defenetly usefull!

betovarg’s picture

Tried to apply the patch with -p1 in #14 and got:

patching file css/views_infinite_scroll.css
patching file js/views_infinite_scroll.js
Hunk #2 FAILED at 22.
1 out of 2 hunks FAILED -- saving rejects to file js/views_infinite_scroll.js.rej
patching file theme/views_infinite_scroll_theme.inc
Hunk #2 FAILED at 81.
Hunk #3 FAILED at 101.
2 out of 3 hunks FAILED -- saving rejects to file theme/views_infinite_scroll_theme.inc.rej
patching file views_plugin_pager_infinite_scroll.inc
Hunk #1 succeeded at 18 with fuzz 1.
Hunk #2 succeeded at 95 (offset 5 lines).

So, I get the UI option in views infinite scroll pager, but actually it does not work: load more link does not appear, it keeps loading more as I scroll down.

svenaas’s picture

I would very much like to see this working with Drupal 7.x.

svenaas’s picture

My use case is slightly different from the one described above, but in case it's useful to anyone else working on related problems I wanted to share the patch I wrote (against 7.x-1.x-dev) for my current project: when the view is initially displayed the infinite scroll autopager is not enabled. Once the more button is clicked (labeled "View All" in my current project) the more button is hidden and the infinite scroll autopager takes over.

avolve’s picture

I tried to apply the patch in 20 (unsuccessfully) as I wanted to see if it fit my use case...

What I was hoping for was an option to either autoload (as this module does very well — much thanks), or a load more link that would load more nodes on the same page. This would be set in the views settings.

The reason for the latter is for a mobile theme with navigation located below main content, users can't get there without more content being loaded.

There is a similar issue for a footer — might need to rethink site design. I still think this would be a nice option for this module

[I have tried views load more and waypoints — the combination seems to dynamically load two pages worth of content, then a new page]

revagomes’s picture

I tried applying the #14 patch with git but no success so I tried using patch -p1 and I've got the same error as @betovarg said.

The #20 patch didn't worked to me also.

Here goes my version of the patch.

revagomes’s picture

Status: Needs work » Needs review

Changing the status to needs review.

revagomes’s picture

With typo correction and improvements on pager settings form.

kolier’s picture

#24 works well +1

kolier’s picture

Status: Needs review » Needs work

This patch implementation breaks in some theme.
This one works more wildly: https://drupal.org/node/1942142

Spanners’s picture

Issue summary: View changes

#24 worked for me.

diegops’s picture

#10 works well

Honza Pobořil’s picture

Status: Needs work » Closed (outdated)