seiyar26 Posted September 3, 2011 Share Posted September 3, 2011 bonjour , je souhaiterai enlever le code html dans le alt du blockcategorie c'est à a dire lorsque je passe la souris sur une sous catégories j'ai la description mais avec les <strong>, <bold> .... Merci d'avance! Link to comment Share on other sites More sharing options...
ludo Posted September 4, 2011 Share Posted September 4, 2011 edites le fichier category-tree-branch.tpl dans le repertoire modules/bloccategory A la ligne 28 : <a href="{$node.link}" {if isset($currentCategoryId) && ($node.id == $currentCategoryId)}class="selected"{/if} title="{$node.desc|escape:html:'UTF-8'}">{$node.name|escape:html:'UTF-8'}</a> tu vires title="..." <a href="{$node.link}" {if isset($currentCategoryId) && ($node.id == $currentCategoryId)}class="selected"{/if}>{$node.name|escape:html:'UTF-8'}</a> par contre si tu veux garder le texte et que c'est les tags qui te genent tu remplaces escape:html:'UTF-8' par striptags <a href="{$node.link}" {if isset($currentCategoryId) && ($node.id == $currentCategoryId)}class="selected"{/if} title="{$node.desc|striptags}">{$node.name|escape:html:'UTF-8'}</a> Link to comment Share on other sites More sharing options...
S7 Media Ltd Posted May 9, 2013 Share Posted May 9, 2013 Sorry to bring up an old topic, but I was looking for this and wanted to utilise Ludo's fix. However, it needs a little tweaking. You actually need to use strip_tags:true . So: <a href="{$node.link|escape:'htmlall':'UTF-8'}" {if isset($currentCategoryId) && $node.id == $currentCategoryId}class="selected"{/if} title="{$node.desc|strip_tags:true}">{$node.name|escape:'htmlall':'UTF-8'}</a> 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