Contents
Syntax
The syntax for
paginate.template { //template code }
@paginate.template { //template code }
Description
The
Note: Specifying a template for pagination is optional, the default template is "
Note: The hard-coded constants available for pagination are listed here.
See here for some blog templates which use pagination for the posts table, specifically see here (demo) for an example of pagination code.
Note:
@paginate.template { # block }!
n++ example
Example of
@paginate.template { <p> @if{!s}($[paginate.page_no] > 1) { <a href="@pathtopageno(@`$[paginate.page_no]-1`)">previous</a> } @if{!s}($[paginate.page_no] < $[paginate.no_pages]) { <a href="@pathtopageno(@`$[paginate.page_no]+1`)">next</a> } </p> $[paginate.page] }