alternate 2 includes
| From: | Elgi | Date: | Tue, 18 Mar 2003 15:19:30 +0000 |
| Subject: | alternate 2 includes | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8712@lists.php.net to get a copy of this message | ||
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