Jump to content

[SOLVED] Help! Problem with categories description


Recommended Posts

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

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

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

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...