Jump to content

Problem with description in category tree for non english words


Recommended Posts

Hello to all,

i have a problem that is maybe with UTF-8. My language is Greek and when i pass my mouse to my category tree on the right of my homepage i saw something like (Εακ). My description is ok when someone goes into subcategory but in category tree there is this problem.

My site is http://www.dakshop.gr

Thanx for your help.

Edited by theos_dias (see edit history)
Link to comment
Share on other sites

Open this file: modules\blockcategories\category-tree-branch.tpl

 

Locate

 

 

<a href="{$node.link|escape:'html':'UTF-8'}" {if isset($currentCategoryId) && $node.id == $currentCategoryId}class="selected"{/if}
title="{$node.desc|strip_tags|trim|truncate:255:'...'|escape:'html':'UTF-8'}">{$node.name|escape:'html':'UTF-8'}</a>
 
 
And try changing it to
 
 
<a href="{$node.link|escape:'html':'UTF-8'}" {if isset($currentCategoryId) && $node.id == $currentCategoryId}class="selected"{/if}
title="{$node.desc|escape:'html':'UTF-8'|strip_tags|trim|truncate:255:'...'}">{$node.name|escape:'html':'UTF-8'}</a>
 

Or, alternatively

 

<a href="{$node.link|escape:'html':'UTF-8'}" {if isset($currentCategoryId) && $node.id == $currentCategoryId}class="selected"{/if}
title="{$node.desc|escape:'html':'UTF-8'}">{$node.name|escape:'html':'UTF-8'}</a>
 
The clear the store cache
Link to comment
Share on other sites

GREAT. without escaping everything looks perfect. Finally i put this code

<a href="{$node.link|escape:'html':'UTF-8'}" {if isset($currentCategoryId) && $node.id == $currentCategoryId}class="selected"{/if}

title="{$node.desc|strip_tags|trim|truncate:500:'...'}">{$node.name|escape:'html':'UTF-8'}</a>
Thank you Vekia and Nemo1
Link to comment
Share on other sites

  • 1 month later...
×
×
  • Create New...