Re: section title block

From: Date: Sun, 25 Feb 2001 12:20:04 +0000
Subject: Re: section title block
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-218@lists.php.net to get a copy of this message
I agree with Sergey. It would be great to have something like this (see below). Easy to understand for designers, much better than all the if statements. {section...} {sectionheader} //section header data goes here {sectionrows} //section row goes here {sectionfooter} //section footer data goes here {sectionelse} {/section} Regards, Joris ----- Original Message ----- From: "Sergey Egorov" <esv@37.ru> To: "Monte Ohrt" <monte@ispi.net> Cc: "Smarty" <Smarty@lists.ispi.net> Sent: Sunday, February 25, 2001 11:39 AM Subject: [smarty] Re: section title block > Hello Monte, > > Sunday, February 25, 2001, 9:17:03 AM, you wrote: > > MO> I think this can be done now: > > MO> {section name=mystuff loop=$data} > MO> {if %mystuff.loop% eq 0} > MO> {include file="section_header.tpl"} > MO> {/if} > MO> {* section row data goes here *} > MO> {if %mystuff.rownum% eq $mystuff.loop%} > MO> {include file="section_footer.tpl"} > MO> {/if} > MO> {/section} > > > Two ifs inside a loop? I think it is not a good solution. > > -- > Best regards, > Sergey mailto:esv@37.ru > > > > --- > You are currently subscribed to smarty as: trooster@interstroom.nl > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ >

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