* limits
|
** none(?)
|
|
+ |
+!Sample |
-=php file=-
|
pass all pagination related variables to the smarty template
|
|
--=template file=-
|
-generic example
|
-{CODE()}{pagination find=$find sort_mode=$sort_mode}{CODE}
|
+-=tpl file=- |
+{CODE} |
+{pagination find=$find sort_mode=$sort_mode} |
+{/CODE} |
|
|
if you wish to pass many parameters to the pagination function, you can keep things clean by passing an array with all variables called '__pgn_params__'
|
-
|
-=php file=-
|
-{CODE()}$pgn_params = array (
|
+{CODE} |
+$pgn_params = array ( |
find => $find,
|
sort_mode => $sort_mode,
|
name1 => $val1,
|
name2 => $val2
|
);
|
smarty->assign('pgn_params', $pgn_params);
|
-{CODE}
|
+{/CODE} |
|
-=template file=-
|
-{CODE()}{pagination pgn_params=$pgn_params}{CODE}
|
+{CODE} |
+{pagination pgn_params=$pgn_params} |
+{/CODE} |
|
--=other notes=-
|
+!other notes |
the offset variables do not have to be passed to the pagination function if their names are used as explained above
|
the template used to display pagination links, can be found in
|
kernel/templates/pagination.tpl
|
to bundle parameters in an array you __must__ use pgn_params |
+ |
+!See also |
+*((Smarty Functions)) |