theos_dias Posted October 7, 2014 Share Posted October 7, 2014 (edited) 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 October 7, 2014 by theos_dias (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted October 8, 2014 Share Posted October 8, 2014 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 More sharing options...
theos_dias Posted October 8, 2014 Author Share Posted October 8, 2014 (edited) Nemo1 thank u very much. i change my category-tree-branch.tpl but nothing happens. Problem still remains. I have also clear my cache. Edited October 8, 2014 by theos_dias (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 8, 2014 Share Posted October 8, 2014 check if file exists in theme directory (themes/your-theme/modules/blockcategories) if it exists there - apply changes there Link to comment Share on other sites More sharing options...
theos_dias Posted October 8, 2014 Author Share Posted October 8, 2014 (edited) Thanks Vekia. You have already solve a lot of my problems as i read the forum. Ι change the lines inside theme/modules/blockcategories, clear cache,clear browser cache nothing happens. I spent so many time and i cannot find the solution. Edited October 8, 2014 by theos_dias (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 9, 2014 Share Posted October 9, 2014 so, at the end: try to use simple {$node.desc} wthout any kind of escaping Link to comment Share on other sites More sharing options...
theos_dias Posted October 9, 2014 Author Share Posted October 9, 2014 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 More sharing options...
David Šimáček Posted December 6, 2014 Share Posted December 6, 2014 Be careful. The mentioned works fine until double quote is used as category description. Then it makes troubles with title of link and www validator evaluates it as error of course. Link to comment Share on other sites More sharing options...
Recommended Posts