|
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 |
Equinoxe5 Smarty Rookie
Joined: 08 May 2008 Posts: 14
|
Posted: Sun Feb 13, 2011 10:26 pm Post subject: Couper une chaine de caractères au niveau des espaces |
|
|
Bonjour,
J'ai un programme qui récupère des mots-clé dans une table.
Je souhaiterais que chaque mot clé devienne un lien cliquable.
Voici la ligne de ma template concernée:
Code: | <div>{$lan_meta}: <a href="{'index.php'|GetUrl:'s':$images[image].keywords}" target="_parent">{$images[image].keywords}</a></div> |
Ca fonctionne très bien s'il y a un seul mot clé "toto" par ex.
Mais si je récupère plusieurs mots-clé dans la table "titi toto" par exemple, mon lien est KO bien entendu.
Donc comment faire une boucle autour de cette ligne de code en ayant scindé le résultat de la requête pour obtenir "titi" ET "toto" ?
J'espère être clair dans mes explications...
Merci d'avance |
|
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
|