Limit to {section}

From: Date: Fri, 16 Nov 2001 09:20:53 +0000
Subject: Limit to {section}
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1922@lists.php.net to get a copy of this message
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 ? Arnaud.

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