Procedural File: function.pager.php
Source Location: /pnRender/plugins/function.pager.php
Page Details:
Zikula Application Framework
Tags:
smarty_function_pager [line 42]
void smarty_function_pager(
$params, &$smarty, int $rowcount, int $limit, string $posvar, string $template, string $includeStylesheet, string $anchorText, string $maxpages, string $display, string $class, bool $processDetailLinks)
|
|
pnRender pager plugin
Examples (see also the demo page) <!--[pager rowcount="400" limit="50"]--> <!--[pager rowcount="400" limit="35" template="pageritems.html"]--> <!--[pager rowcount="480" limit="90" template="pagerintervals.html" posvar="myposvar"]--> <!--[pager rowcount="500" limit="47" template="pagerimage.html"]--> <!--[pager rowcount="432" limit="25" template="pagercss.html"]--> <!--[pager rowcount="1200" limit="40" maxpages="10"]--> <!--[pager rowcount="1200" limit="40" template="pagercss.html" maxpages="7"]--> <!--[pager rowcount="1200" limit="40" template="pagerjs.html" maxpages="10"]--> <!--[pager rowcount="1200" limit="40" template="pagercss2.html" maxpages="20"]-->
Parameters
| int |
$rowcount |
- total number of items to page in between
(if an array is assigned, it's count will be used)
|
| int |
$limit |
- number of items on a page (if <0 unlimited)
|
| string |
$posvar |
- name of the variable that contains the position data, eg "offset"
|
| string |
$template |
- optional name of a template file
|
| string |
$includeStylesheet |
- use predefined stylesheet file? Default is yes.
|
| string |
$anchorText |
- optional text for hyperlink anchor (e.g. 'comments' for the anchor #comments) (default: '')
|
| string |
$maxpages |
- optional maximum number of displayed pages, others will be hidden / suppressed
(default: 0 = show all pages)
|
| string |
$display |
- optional choice from 'page' or 'startnum'. Show links using page number or starting item number
|
| string |
$class |
- optional class to apply to the pager container (default : pn-pager)
|
| bool |
$processDetailLinks |
- should the single page links be processed? (default: false if using pagerimage.html, otherwise true)
|
| |
$params |
|
| |
&$smarty |
|