Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.0-rc1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Jul 2011 at 17:32 UTC
Updated:
12 Apr 2019 at 10:49 UTC
Jump to comment: Most recent
Comments
Comment #1
merlinofchaos commented$view->query->pager->current_page
Note that nothing there is guaranteed to be set because 1) the current pager may not support paging (i.e, no pager) and the pager may not be initialized. Though if you're in a template, any paging should already have happened since this is during render phase. I would recommend code like this, though:
Comment #3
phponwebsites commentedHow to set current page for views via ajax in drupal 7?
Is it possible to set current page for views using Ajax?
Like Drupal.Views.Ajax.page = 1
Comment #4
RoslinMary commented