Re: Limit to {section}

From: Date: Fri, 16 Nov 2001 14:31:15 +0000
Subject: Re: Limit to {section}
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1928@lists.php.net to get a copy of this message
On Fri, 16 Nov 2001, LIMBOURG Arnaud wrote: > Hello, > > I would like to discuss an addition to the {section} function. > > Would it be possible to have a limit to the number of loop we want to do ? > > I use a template to navigate through a recordset, at the top of the page > there are page numbers displayed to go directly to the page you want. > > The problem is that if you have 80 pages it doesn't look nice. > > So my point would be to have something like > {section name=mysec loop=$myvar limit=10} > > Would that be useful or am I completely out on this one ? Use 'max' attribute. It's not documented, but will be. -Andrei * Reality isn't all it's cracked up to be. *

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