Closed (won't fix)
Project:
Views Load More
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Feb 2014 at 23:35 UTC
Updated:
17 Jun 2016 at 19:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
alansaviolobo commentedThis 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.
Comment #2
socialnicheguru commentedupdated title
Comment #3
socialnicheguru commentedComment #4
alansaviolobo commentedHi SocialNicheGuru,
updated the title to reflect the present behaviour.
Comment #5
balintd commentedI'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.
Comment #6
alansaviolobo commentedHi balintd,
using version 7.x-1.2 on simplytest.me, attached are the screenshots. doesnt work for me.
Comment #7
balintd commentedHave you enabled 'Use AJAX' in Advanced -> Other in the right sidebar? I can't see that from the screenshots.
Comment #8
alansaviolobo commentedupdated the screenshot.
Comment #9
nuncium commentedI 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.
Comment #10
K_Gonzalez commentedHello 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
Comment #11
nuncium commentedFinally, I solved this problem by using development release Views 7.x-3.x-dev
instead of current Views 7.x-3.7
Comment #12
yatendrasingh121 commented@ K_Gonzalez solution worked for me !!
thanks K_Gonzalez
Comment #13
ptmkenny commentedI'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.
Comment #14
ptmkenny commentedClosed #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?
Comment #15
ptmkenny commentedComment #16
socialnicheguru commented#14 I am doing the same.
Comment #17
tr33m4n commentedEnabling ajax in the view fixed this issue for me
Comment #18
jpvosmeer commentedI'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?
Comment #19
tr33m4n commented@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?
Comment #20
AlmasK89 commentedIf 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
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:
Comment #21
m4oliveiTo 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.
Comment #22
bossmac commentedMy 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

Comment #23
m4oliveiHumm, is there a public link you could share so I could take a look?
Comment #24
m4oliveiAlso @bossmac have you tried the latest dev release?
Comment #25
FunkMonkey commentedLeaving 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!
Comment #27
m4olivei@ligono Am I blind? I'm not seeing where on the page you sent the Views Load More pager is being used..
Comment #28
lexa.mihu commentedi 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.
Comment #29
tengokui 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
Comment #30
paulsheldrake commentedThis problem still exists in the lastest dev branch of this module and the latest version of views
Comment #31
nicholasthompsonThis also exists in the Drupal 8 branch as I dont see a .views-content wrapper around the rows.
Comment #32
nicholasthompsonAlthough this patch should address that...
https://www.drupal.org/files/issues/views-load-more-pager-class-2543714-...
Comment #33
m4oliveiThis 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!
Comment #34
waqarit commentedYes, I have this issue. I have also used the dev version and also tried all the patches I have searched but no success.
Comment #35
attheshow commentedThis 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.