Re: [SMARTY] alternate 2 includes

From: Date: Tue, 18 Mar 2003 15:23:58 +0000
Subject: Re: [SMARTY] alternate 2 includes
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8713@lists.php.net to get a copy of this message
{section name=bloc loop=$bloc} {if $smarty.section.bloc.even} ... {else} ... {/if} {/section} On Tue, 2003-03-18 at 09:19, Elgi wrote: > Hello smarty-general, > > I want alternate 2 bloc or 2 includes : > > {section name=bloc loop=$bloc} > //ex : $bloc[bloc] pair (0,2,4,...) > {include file="include/bloc_centre_gauche.tpl"} > //ex : $bloc[bloc] impair (1,3,5,...) > {include file="include/bloc_centre_droit.tpl"} > {/section} > > I have many var in include, > i test too wich html and cycle but it's no good. > Same result wich include "include/bloc_centre.tpl" and cycle. > I test too $smarty.section.bloc.index, index_prev, index_next but it's > no good. > I search too math function for $smarty.section.bloc.iteration ou > rownum > for result pair, impair. > > help me :/ > > -- > Cordialement, > Elgi -- Monte Ohrt <monte@ispi.net>

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