By ashiwebi on
I have a page on which php code is written for showing the content. Now I want to add the pagination on that page or node. How I can achieve this.
I have a page on which php code is written for showing the content. Now I want to add the pagination on that page or node. How I can achieve this.
Comments
I am not sure what kind of
I am not sure what kind of content your php code outputs but it seems like you could try inserting the pagebreak into the content it generates using php.
If it generates generates paragraphs you could stick a tag in there after every X number of closing p tag for example.
about custom pagination
I have a code through which I am showing some data from database on a page by selecting php code .On that page I want to create the pagination for the data shown.Thanks in advance.
*_*
To show pager, you must use
pager_query()in your php code.You can find help on http://api.drupal.org.
:)
Beautifulmind
Regards.
🪷 Beautifulmind