birchoff Posted September 12, 2013 Share Posted September 12, 2013 Hi! I.ve got problem with descriptions of categories/subcategories in my Presta 1.5.5 - I believe it happens after updating from v1.5.4 When I added subcategies everything was ok. After updating, when now i add some subcategories it always shows <p> in front-end. When i try to edit older subcategories it shows <p> too... Older subcategories you can see at http://r5studio-konto.hekko.pl/16-hp-elitebook (as you can see first sub has <p> after edit) New (with <p>) http://r5studio-konto.hekko.pl/18-hp-probook In template code I found: {if $subcategory.description} <p class="cat_desc">{$subcategory.description|escape|truncate:60:'...':true}</p> {/if} I tried to add HTML or HTMLALL in escape but it didn't helped. Please help! Link to comment Share on other sites More sharing options...
vekia Posted September 12, 2013 Share Posted September 12, 2013 use |strip_tags:'UTF-8' modifier and it should works well then Link to comment Share on other sites More sharing options...
birchoff Posted September 12, 2013 Author Share Posted September 12, 2013 Thanks but could you paste all code, i'm not so good in coding... tkanks a lot. Link to comment Share on other sites More sharing options...
vekia Posted September 12, 2013 Share Posted September 12, 2013 here it is: {if $subcategory.description} <p class="cat_desc">{$subcategory.description|strip_tags:'UTF-8'|truncate:60:'...':true}</p> {/if} Link to comment Share on other sites More sharing options...
birchoff Posted September 12, 2013 Author Share Posted September 12, 2013 Great, it works! Thanks a lot! SOLVED! Link to comment Share on other sites More sharing options...
vekia Posted September 12, 2013 Share Posted September 12, 2013 you're welcome glad that i could help you a little im going to mark this topic as [solved] best regards Link to comment Share on other sites More sharing options...
birchoff Posted September 13, 2013 Author Share Posted September 13, 2013 and once again me Same problem, but with category tree on left side, example: http://r5studio-konto.hekko.pl/36-hp-probook-6475b In link param title shows <p>text</p> - in some of course, old are ok, but new subcategories have this <p>... As your advice i changed in category-tree-branch.tpl line {if isset($last) && $last == 'true'}class="last"{/if}> <a href="{$node.link|escape:'htmlall':'UTF-8'}" {if isset($currentCategoryId) && $node.id == $currentCategoryId}class="selected"{/if} title="{$node.desc|escape:'htmlall':'UTF-8'}">{$node.name|escape:'htmlall':'UTF-8'}</a> {if $node.children|@count > 0} to {if isset($last) && $last == 'true'}class="last"{/if}> <a href="{$node.link|escape:'htmlall':'UTF-8'}" {if isset($currentCategoryId) && $node.id == $currentCategoryId}class="selected"{/if} title="{$node.desc|strip_tags:'UTF-8'}">{$node.name|escape:'htmlall':'UTF-8'}</a> {if $node.children|@count > 0} but it didn't helped... grr Link to comment Share on other sites More sharing options...
vekia Posted September 13, 2013 Share Posted September 13, 2013 checked it and dont see any html tag there: Link to comment Share on other sites More sharing options...
birchoff Posted September 13, 2013 Author Share Posted September 13, 2013 in link, parameter "title" Link to comment Share on other sites More sharing options...
vekia Posted September 13, 2013 Share Posted September 13, 2013 okay now it's clear, and if you remove title="" tag, the tooltip with title disappear? im asking because maybe you've got cache issues. can you for test purposes only - remove title tag? Link to comment Share on other sites More sharing options...
birchoff Posted September 13, 2013 Author Share Posted September 13, 2013 I turned off title tag - nothing happens - title tag was seen in front-end. Then I turned off all cache features in presta. Then refreshed few times front-end and nothing happens... still i could see the title tag... Stange... Maybe not this code line should i change? Link to comment Share on other sites More sharing options...
vekia Posted September 13, 2013 Share Posted September 13, 2013 have you got this file: themes/YOUR_THEME/modules/blockcategories/category-tree-branch.tpl ? if so, you have to append changes there Link to comment Share on other sites More sharing options...
birchoff Posted September 13, 2013 Author Share Posted September 13, 2013 of course i edited not this file thanks! 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