Re: [SMARTY] Multiple page manager
| From: | Manfred Stienstra | Date: | Sun, 09 Mar 2003 19:16:37 +0000 |
| Subject: | Re: [SMARTY] Multiple page manager | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8509@lists.php.net to get a copy of this message | ||
On Sunday 09 March 2003 18:20, Jacques Jocelyn wrote:
> I know how I can limit the display to have only 10 records per page but is
> there a way to at the end of my current page :
You could assign an array like this to the template:
$s->assign('pages', array('1', '2', '3'));
and use cycle, section or foreach to create the links. If you want to create
the links from a start and an end numer (eg. 3-8) you would have to write a
custom function. See the plugins directory for examples on how to write a
function.
Manfred