|
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 |
babarincairo Smarty n00b
Joined: 20 Nov 2005 Posts: 1
|
Posted: Sun Nov 20, 2005 4:08 pm Post subject: affichage conditionnel |
|
|
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 |
|
thiebo Smarty Pro
Joined: 16 Jan 2005 Posts: 144 Location: Paris
|
Posted: Tue Nov 22, 2005 12:58 pm Post subject: |
|
|
pourquoi tu ne veux pas utiliser {if} ? |
|
Back to top |
|
Abalam Smarty Rookie
Joined: 14 Jul 2003 Posts: 12
|
Posted: Sat Jan 21, 2006 11:45 pm Post subject: |
|
|
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 |
|
|
|
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
|