florian95 Posted April 18, 2012 Share Posted April 18, 2012 Bonjour, je cherche depuis pas loin d'un heure mais je n'ai pas trouvé comment faire ! Voila j'aimerai rendre le titre de mes article cliquable(quand on clique dessus l'article s'ouvre) voici ce que j'ai : <!-- display title --> <h1>{l s='Tous les articles' mod='plblog'}</h1> <!-- /display title --> <!-- display post list --> {if $pl_postes_empty == 0} {foreach from=$pl_post_list item=post} {$l = $plTools->getPostLink($post['id_pl_blog_post'], $post['link_rewrite'], $post['id_pl_blog_category'])} {$count_comment = $plTools->getCountComment($post['id_pl_blog_post'])} {$post_content = $plTools->substr($post['post_description'], 0, 1000)} <!-- post --> <div id="plpost"> <div class="pltitle"> <div class="pltitle"><h2>{$post['post_title']}</h2></div> </div> <div class="pl_info_post"> <div class="plcount_comment">{$count_comment}{if $count_comment > 1} Comments{/if}{if $count_comment <= 1}{l s='Commentaire' mod='plblog'}{/if}</div> <div class="plauthor">{$post['post_date_create']}</div> <div class="plclear"> </div> </div> <div class="plpost_content"><p>{$post['post_description']|strip_tags|truncate:{$pl_b_summary_character_count[spam-filter]</p></div> <div class="plread_more"><a href="{$l}">{l s='Lire plus' mod='plblog'}</a></div> </div> <!-- /post --> {/foreach} {/if} {if $pl_postes_empty == 1} {l s='There are no posts' mod='plblog'} {/if} <!-- /display post list --> C'est le h2 que voudrai rendre cliquable mais je ne vois pas comment. Merci de votre aide. Link to comment Share on other sites More sharing options...
Ether Création Posted April 19, 2012 Share Posted April 19, 2012 Bonjour, Avez vous essayé: <a href="{$l}"><h2>{$post['post_title']}</h2></a> Cordialement, Arthur Link to comment Share on other sites More sharing options...
florian95 Posted April 19, 2012 Author Share Posted April 19, 2012 Bonjour Ether, non je n'avais pas fait cela comme ca. Eh be 1000 merci pour votre aide clair et précis ! au cas ou voici un lien vers mon deuxieme souci ; http://www.prestashop.com/forums/topic/165364-apercu-image-cms/ Encore merci ! je passe en résolu Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now