Finding first and last section loop var
| From: | Sean Chambers | Date: | Mon, 01 Jul 2002 20:35:07 +0000 |
| Subject: | Finding first and last section loop var | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5138@lists.php.net to get a copy of this message | ||
This is what I am trying to do. Fairly simple actually:
{section name=page loop=$pages}
print some stuff here
{/section}
All I want to do is insert a certain graphic before the print statement
if it is the first loop. The reason for this is because I am displaying
graphics with this loop. If it is the first graphic displayed, a graphic
needs to be displayed before it. Also I need to know which loop is the
final loop so I can again print a special graphic. Thanks for your help.
Sean Chambers
Web Developer
Vann Data Technology Centre
Daytona Beach, FL
(386) 238-1200 ext. 1205
chamberss@vanndata.com