I was working on a page which have two customized views embeded in. Both of them have pager. One is normal pager for go to next page. Another one is a block with pager of Ajax enabled. The issue is when it goes to next page. The Ajax pager also goes to the next page. Did anyone knowns how to fix it? It shouldn't work like this. If this might be the ?page=1 interacting each other?

Any clue or suggestions will be appreciate!

Comments

chill8331’s picture

Drupal 6.10
Views 2.3

alan d.’s picture

If you edit the view display: Click "Use pager" option on the block view, and set "Pager element:" to 1

Drupal uses an array of values to keep track of the page elements, by default both views will be using 0. The second pager needs a key of 1 or above (the lower the key the better). If there is a third pager element on the page, set one view "Pager element:" to 1, and the second views "Pager element:" to 2.


Alan Davison
chill8331’s picture

It works! Thank you so much!

corydorning’s picture

I have done this for 6 blocks on a page. they all have there own pager and the pager element is set from 0 to 5. It utilizes Ajax. The first time i click each pager, everything works properly, but after that the pagers go completely nuts.

any ideas?

alan d.’s picture

Sounds like a bug, have you submitted this issue to the issue queue. Give easy to follow step by step method to replicate the bug


Alan Davison