Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

3 Résultats en 1 Passe ?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
Handy
Smarty Rookie


Joined: 24 Jul 2008
Posts: 11

PostPosted: Thu Jul 24, 2008 11:02 am    Post subject: 3 Résultats en 1 Passe ? Reply with quote

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
View user's profile Send private message
mumuri
Smarty Rookie


Joined: 06 Apr 2008
Posts: 27

PostPosted: Sun Sep 07, 2008 2:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP