I was trying to use this module with http://drupal.org/project/views_load_more.

it doesn't work. It would be nice if it did.

Comments

alansaviolobo’s picture

Project: A Simple Timeline » Views Load More
Category: Feature request » Bug report

This seems to be an issue with the views_load_more.module.
I created 5 pages.
I then created a new simple/default view and set the pager as views load more with items per page =2.
on clicking the load more button, the first two items are replaced by the second page items, rather than they being appended to the listing.

socialnicheguru’s picture

Title: Great to integrate with views_load_more and waypoints » Great to simple_timeline integrate with views_load_more and waypoints

updated title

socialnicheguru’s picture

Title: Great to simple_timeline integrate with views_load_more and waypoints » Great to integrate simple_timeline with views_load_more and waypoints
alansaviolobo’s picture

Title: Great to integrate simple_timeline with views_load_more and waypoints » views_load_more seems to replace existing items rather than append to them.

Hi SocialNicheGuru,

updated the title to reflect the present behaviour.

balintd’s picture

I've started using the module and noticed the same thing at first.

I think you just have to enable 'Use AJAX' in the view settings (Advanced -> Other).

This fixed it for me.

alansaviolobo’s picture

Version: 7.x-1.x-dev » 7.x-1.2
StatusFileSize
new50.65 KB
new17.52 KB
new17.84 KB

Hi balintd,

using version 7.x-1.2 on simplytest.me, attached are the screenshots. doesnt work for me.

balintd’s picture

Have you enabled 'Use AJAX' in Advanced -> Other in the right sidebar? I can't see that from the screenshots.

alansaviolobo’s picture

StatusFileSize
new71.92 KB

updated the screenshot.

nuncium’s picture

I have the same issue,
AJAX enabeled.
can't relate to anything,
Tried Jquery update, several versions,
tested on several themes,
always the same,
on clicking the load more button, the first items are replaced by the second page items, rather than they being appended to the listing.

K_Gonzalez’s picture

Hello i have same problem and with a friend we found a temporaly fix in views_load_more.js line 17
//var targetList = response.targetList || ''; by
var targetList = '';

If it can help you

nuncium’s picture

Finally, I solved this problem by using development release Views 7.x-3.x-dev
instead of current Views 7.x-3.7

yatendrasingh121’s picture

@ K_Gonzalez solution worked for me !!

thanks K_Gonzalez

ptmkenny’s picture

I'm having the same issue-- the next set of results is loaded, replacing the previous results rather than being added to them. I tried the fix described in #10 as well as updating to the latest dev version of Views as described in #11, but neither worked for me, even after clearing the cache.

ptmkenny’s picture

Closed #2191321: Append results instead of replacing as a duplicate. In this thread, one user suggested that calling the view from code was a problem. I am also calling the view from panels as a content pane; could that be the source of the issue?

ptmkenny’s picture

Title: views_load_more seems to replace existing items rather than append to them. » views_load_more replaces existing items rather than appending to them
socialnicheguru’s picture

#14 I am doing the same.

tr33m4n’s picture

Enabling ajax in the view fixed this issue for me

jpvosmeer’s picture

I'm also encountering this problem. But only in combination with the Insert View module.
When adding the view with the Insert View tag the appending fails. When adding the view in a panel it works fine. Any suggestions?

tr33m4n’s picture

@Jeroen Janssen, it looks like the 'Insert View' module has not been updated for 2 years. Are there any other modules you could use to achieve the same thing? EVA maybe?

AlmasK89’s picture

If you have custom template for views, try to change "wrapper" and "content_query" in views_load_more.js.
var wrapper=$('.reviews-page-wrapper')
on line 14 where ".reviews-page-wrapper" contains view and pager, and change

var content_query = targetList && !response.options.content ? '.view-content ' + targetList : response.options.content || '.view-content';

on line 54 to var content_query = '.reviews-page'; where ".reviews-page" is class of view's rows container. Also I print classes on wrapper, and module works.
Code of my views-view--machine_name.tpl.php:

<div class="reviews-page-wrapper <?php echo $classes;?>">
<div class="reviews-page">
    <?php echo $rows;?>
</div>
<?php if ($pager) echo $pager;?>
</div>
m4olivei’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

To summarize, here is what you should try:

* Ensure that "Use AJAX" in the views settings is set to Yes.
* Ensure you are using a recent 7.x-3.x version of views (I am currently running 7.x-3.8)
* Try using the latest views_load_more-7.x-1.x-dev release or checkout the 7.x-1.x branch. I've been committing some changes recently.
* When views_load_more attempts to append the next page, it expects the wrapper to append items to to be .view-content. If you're theme changes the wrapper class, you will need to set a new selector in the Load More Pager settings under Advance Options > Content selection selector.

If you are still having issues, please detail steps to reproduce your issue.

bossmac’s picture

StatusFileSize
new405.86 KB

My Settings

*Ajax Enable
*latest Dev Version of Views
*latest Dev Version of Views Load More
*Views Format Grid
*WAYPOINT enable

But still seeing the problem and i notice the ajax-progress-throbber are having also an issue
throbber

m4olivei’s picture

Humm, is there a public link you could share so I could take a look?

m4olivei’s picture

Also @bossmac have you tried the latest dev release?

FunkMonkey’s picture

Leaving Ajax turned off (turning on borked things even more) and installing the Dev version of Views Load More fixed this issue for me. I'm asking the Commons devs if they will use the Dev version in their next release. They may avoid including Dev versions in their distribution though. I'm not sure.

Thanks for the dev release m4olivei!

m4olivei’s picture

@ligono Am I blind? I'm not seeing where on the page you sent the Views Load More pager is being used..

lexa.mihu’s picture

i have the same problem. load more does not append, but replace.

views_load_more = "7.x-1.3+3-dev"
views = "7.x-3.8"
use ajax -> checked
it's a panel pane added to a panel
i use custom template for that panel pane, for the rows, but i surrounded them with default class, even tried different class and added it to advance settings

LE: the problem is with module "views ajax fade". i use that in combination with exposed filters.

tengoku’s picture

i am supossing that you are using a custom tpl (as my case)... i have to change the selector because of this... i have to inspect the javascript code... views_load_more.js:66 and check wich selector works...

in my case... i have to go to the pager properties and in advanced, choose the ".view-content .item-list > ul:not(.links)" beacuse the default dont work for me.

Hope this helps

paulsheldrake’s picture

This problem still exists in the lastest dev branch of this module and the latest version of views

nicholasthompson’s picture

This also exists in the Drupal 8 branch as I dont see a .views-content wrapper around the rows.

nicholasthompson’s picture

m4olivei’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

This issue is all over the place. Please if you are still having trouble with the latest dev release, open a new ticket and detail steps to reproduce your particular issue.

Thanks!

waqarit’s picture

Yes, I have this issue. I have also used the dev version and also tried all the patches I have searched but no success.

attheshow’s picture

This was happening to me when I was trying to attach a block with a Load More pager below a page display with a Load More pager. Using 7.x-1.x-dev. I didn't work when A) attaching the block in the footer of the view using "Global: View area" or B) when using views_embed_view() within the page template file. The Load More pager would do a replacement instead of an append. Methods that do appear to work: A) placing the block into a theme region.

I would stress that it's important when doing this to set the pager id on the page display to "0" and the block display to "1" in order to make them operate distinctly.