Hi all,

Just did a fresh drupal install and downloaded the pager mod. It works fine, only issue is that when I check the box to enable ajax paging, it simply doesnt work. it saves my settings, but my pages are not ajaxified. any ideas?

Cheers,

Jared

Comments

nirbhasa’s picture

I replicated this. I disabled all js modules that might interfere with this, and it had no effect

However, in my node.tpl.php i was printing out

print $node->content['body']['#value']; 
 print $node->paging; 

When I printed print $node->body; it worked fine

nirbhasa’s picture

Also if pager position is set to 'None' and print $node->paging; is inserted, it doesnt work, even if $node->body is called

jenlampton’s picture

Title: Ajax paging does not work » Ajax paging does not work when pager is manually placed elsewhere
Component: User interface » Code
Status: Active » Needs review
StatusFileSize
new3.25 KB

I can confirm this problem.

It looks like the only content on the page that is updated via the AJAX request is within the div with class paging-pager-contents. If the pager is within that div (as it is when it is printed either above the body, below, or both) then things work as expected. But when the pager is 'hidden' and printed manually somewhere outside that div - the ajax handler is not properly added to the pager.

I've made some updates to the code so that the pager can be placed anywhere on the page and it will still know who it's parent is, but it could use some testing since my jQuery-Fu is not that great.

nancydru’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)