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

affichage conditionnel

 
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
babarincairo
Smarty n00b


Joined: 20 Nov 2005
Posts: 1

PostPosted: Sun Nov 20, 2005 4:08 pm    Post subject: affichage conditionnel Reply with quote

bonjour,

je debute avec smarty et je recherche un filtre qui pourrait afficher une variable entourée de parenthèses (par exemple) si elle n'est pas null sans avoir à faire le test {if...} à chaque fois.

si ça existe pas je ferai un plugin mais c'est un problème courant je pense.

Merci d'avance
Back to top
View user's profile Send private message
thiebo
Smarty Pro


Joined: 16 Jan 2005
Posts: 144
Location: Paris

PostPosted: Tue Nov 22, 2005 12:58 pm    Post subject: Reply with quote

pourquoi tu ne veux pas utiliser {if} ?
Back to top
View user's profile Send private message Visit poster's website
Abalam
Smarty Rookie


Joined: 14 Jul 2003
Posts: 12

PostPosted: Sat Jan 21, 2006 11:45 pm    Post subject: Reply with quote

Si tu ne veux pas utiliser le {if $toto}({$toto}){/if} fait toi un filtre spécial, mais je vois franchement pas l'intérêt !
Back to top
View user's profile Send private message
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