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

Couper une chaine de caractères au niveau des espaces

 
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
Equinoxe5
Smarty Rookie


Joined: 08 May 2008
Posts: 14

PostPosted: Sun Feb 13, 2011 10:26 pm    Post subject: Couper une chaine de caractères au niveau des espaces Reply with quote

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
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