开发者

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'];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜