Jump to content

supprimer le code html dans le alt du module blockcategories


seiyar26

Recommended Posts

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

  • 1 year later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...