Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Sections in an Array... Difference between to values

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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