Re: [SMARTY] Multiple page manager

From: Date: Sun, 09 Mar 2003 22:25:39 +0000
Subject: Re: [SMARTY] Multiple page manager
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8514@lists.php.net to get a copy of this message
Thanks Manfred. I ended up to rewrite my function to be compatible with Smarty. Hard work for now. Thanks for the tip. Jacques "Manfred Stienstra" <manfred.stienstra@dwerg.net> wrote in message news:200303092016.37927.manfred.stienstra@dwerg.net... > 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

« previous php.smarty.general (#8514) next »