Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Sections in an Array... Difference between to values

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
andrewrn
Smarty n00b


Joined: 02 Jan 2004
Posts: 1

PostPosted: Fri Jan 02, 2004 7:05 pm    Post subject: Sections in an Array... Difference between to values Reply with quote

I'm using Smarty in a variety of websites and want to try extending one of them.

I have a list of pages grouped into sections. I want to put a marker between the different groups, but can't work out how. This is what i've got so far and i'm getting errors:

{section name=loopindex loop=$rowno}
rest of the code is here... then at the end of each section i want this:
{if $rowno[loopindex].type eq $rowno[loopindex.1].type} <tr><td colspan=4><hr></td></tr> {/if}
{/section}
_________________
ooooooh... Can we keep it?
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP