|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Handy Smarty Rookie
Joined: 24 Jul 2008 Posts: 11
|
Posted: Thu Jul 24, 2008 11:02 am Post subject: 3 Résultats en 1 Passe ? |
|
|
Bonjour à vous tous,
J'ai besoin d'afficher 3 fois le résultat de ce code dans ma page HTML :
Code: | {strip}{$smarty.get.page}
{if $current_url == "$index_script"}Mon Coco{else}{if $page_title}
{$page_title}
{else}
{foreach from=$breadcrumbs item=i name="bkt"}
{if $smarty.foreach.bkt.index==1}{/if}{if !$smarty.foreach.bkt.first}{$i.title|escape}{if !$smarty.foreach.bkt.last} :: {/if}{/if}
{/foreach}
{/if}{/if}{/strip} |
Comment faire pour que Smarty accélère le rendu et ne l'exécute pas 3 fois ?
Merci,
Handy |
|
Back to top |
|
mumuri Smarty Rookie
Joined: 06 Apr 2008 Posts: 27
|
Posted: Sun Sep 07, 2008 2:00 pm Post subject: |
|
|
un plugin avec un assign qui va te stocker le résultat de ton code dans une variable
tu auras alors juste afficher la variable crée |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|