Get the current node page's pager number?
How can I get the current node pag开发者_开发百科e's pager number? Is there a function that can do that? Thanks!
Drupal 7 and higher have a built in function, called pager_find_page();.
How about Ajax, I design a form with back - next button, how can we know the current page.
The problem has been solved: If for example I have passed a parameter to the page(http://www.example.com?page=1) , then I get the page number of the current node with .
$page_number = $_GET['page'];
精彩评论