Re: section step

From: Date: Tue, 27 Nov 2001 16:38:33 +0000
Subject: Re: section step
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2055@lists.php.net to get a copy of this message
What Andrei Zmievski <andrei@ispi.net> replied for the <tr> structure + make and array like links[0][key1] = "href1"; links[0][key2] = "desc1"; links[1][key1] = "href2"; links[1][key2] = "desc2"; then use {section name=sec1 loop=$links} <td align=center width=25%><a href="{$links[sec1].key1}">{$links[sec1].key2}</a></td> {/section} ----- Original Message ----- From: Rod K To: smarty@lists.ispi.net Sent: Tuesday, November 27, 2001 10:19 AM {section name=sec1 loop=$links step=4} <tr height=35 bgcolor="{if %sec1.iteration% is even}#cccccc{else}#ffffff{/if}"> <td align=center width=25%><a href="{$links[sec1]}">{$makes[sec1]}</a></td> <td align=center width=25%><a href="{$links[???]}">{$makes[???]}</a></td> <td align=center width=25%><a href="{$links[???]}">{$makes[???]}</a></td> <td align=center width=25%><a href="{$links[???]}">{$makes[???]}</a></td> </tr> {/section}

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