Closed (duplicate)
Project:
Paging
Version:
6.x-1.0-beta3
Component:
User interface
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 May 2009 at 11:23 UTC
Updated:
17 Dec 2012 at 09:20 UTC
Hi There, Im having issues when enabling ajax loading - The newly loaded page appears below the original page, underneath the pager? (the orginal page still stays there)
The pager is outputing this html:
In pageing.js, line 123
its searching for paging-pager-contents (the pager at the bottom) and on line 142, its replacing this with the new content loaded.
So not sure what the go is to make it work...
Thanks,
Cameron
Comments
Comment #1
cameronp commentedoops, souldnt have pasted in html
Comment #2
cameronp commentedFAIL on my part...
So basically I had pager set to bottom in the settings..
But I was manually printing the pager in my node.tpl.php, as i was doing some other funky stuff in there.
I was printing out the pager like print $node->content['paging']['#value'];
BAD MOVE ;)
In the settings, I set the pager location to none, and as the nice little description said there, just use $node->paging, so put that in my node.tpl.php, and viola... all working as expected...
Thanks again.
Cameron
Comment #3
cameronp commentedActually sorry, its still not working ;(
Comment #4
Gurpartap Singh commented:)
Comment #5
cameronp commentedsorry I dont think it was ever working, i think I dreamt it was..
When I set the pager to none for the content type, and use $node->paging, it does wrap the content around the pager div.
But, the ajax loading doesnt work.
If I set the pager location to bottom, and use $node->content['pager'][#value] , it then ajax loads, but as above, putting the new page at the bottom of the old one.
An example is here
http://testing2.belzebuub.com/ancient-gnosis/articles/-gospel-judas?page...
here is my node.tpl.php
and the html of a particular page
Comment #6
cameronp commentedI think I was imagining it was working the other night - It was late ;9
Here is an example of the issue
http://testing2.belzebuub.com/ancient-gnosis/articles/-gospel-judas?page...
It is putting the wrapper div around the content now, but the ajaxifieng isnt working
here is my node.tpl.php
Comment #7
cameronp commentedComment #8
Gurpartap Singh commentedTry this change to paging.js:
Comment #9
cameronp commentedGreat thanks for that its looking better,its sort of working now - main issue is the pager is now not changing to show which page its on after it ajaxify loads it, and the next and last pagers dont work with it...
I'm guessing there is probably some more jquery selects that I would need to change?
Comment #10
alex72rm commentedMaybe it's same problem: as I set custom node with content templates module, and put subsequent code inside:
the node is rendered without AJAX effect any more.
Comment #11
FrankzeTank commentedIn case anybody else is having trouble with this one. I figured out a solution that worked for me.
In Manage Fields, Make sure you drag the pager field above your body field. Then inside the Pager settings page select to put the pager below the content option, ensure the ajax option is on. And Viola.
Comment #12
syntheticMedia commentedThanks for #11
This worked for me, but with pager field below body, thanks!
Comment #13
jenlamptonThis looks like exactly the same problem as #827424: Ajax paging does not work when pager is manually placed elsewhere.
I know this issue came first, but since that one has a patch, closing this one in favor of the other. Can you please test the patch in the other issue and let me know if it fixes your problem?