Jump to content

[Solved]Problem - doubled subcategory description


Recommended Posts

Hi,

 

I am attaching picture with problem. If I add description to subcategory in BO (maybe it is same for category - din't try) I can see strange behavior of description. The print screen is same what I see if I visit subcategory (without any click). There is doubled description and "Show more" link is bellow instead of hiding that text. Also as you can see it is doubled.

 

Any idea what to change to repair this?

 

Thanks in advance for solution.

 

This is what I have in my template file category.tpl

{if $category->description}
    <div class="cat_desc">
    {if strlen($category->description) > 120}
	 <p id="category_description_short">{$category->description|truncate:120}</p>
	 <p id="category_description_full" style="display:none">{$category->description}</p>
	 <a href="#" onclick="$('#category_description_short').hide(); $('#category_description_full').show(); $(this).hide(); return false;" class="lnk_more">{l s='More'}</a>
    {else}
	 <p>{$category->description}</p>
    {/if}
    </div>
   {/if}

post-208772-0-61172500-1385396636_thumb.jpg

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

×
×
  • Create New...