Re: [SMARTY] 3 photos at one row

From: Date: Sun, 23 Nov 2003 21:26:22 +0000
Subject: Re: [SMARTY] 3 photos at one row
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10593@lists.php.net to get a copy of this message
Jason Hubble wrote:
{counter name=c1 start=1 skip=3 assign=id2} {counter name=c2 start=2 skip=3 assign=id3} {section name=id1 loop=$images step=3} {* code here for examole *} {$images[id1].alt}<br> {$images[$id2].alt}<br> {* notice $id2 not id2 *} {$images[$id3].alt}<br> {counter name=c2 assign=id2} {counter name=c3 assign=id3} {/section} I hope this helps :)
Can you explain how this example works please? I don't really understand what is happening. Why not just use CSS for that?
Onno

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