History of function_pagination
Version 3 | Current version | |
---|---|---|
function.pagination.php allows you to simply include standardised, centralised and wellformed pagination links.
pass all pagination related variables to the smarty template generic example {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' {CODE()}$pgn_params = array ( find => $find, sort_mode => $sort_mode, name1 => $val1, name2 => $val2 ); smarty->assign('pgn_params', $pgn_params); {CODE} {CODE()}{pagination pgn_params=$pgn_params}{CODE} 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 | function.pagination.php allows you to simply include standardised, centralised and wellformed pagination links.
Samplepass all pagination related variables to the smarty template
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'
other notesthe offset variables do not have to be passed to the pagination function if their names are used as explained abovethe 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 |