Jump to content

[SOLVED] Beschrijving subcategorie wordt dubbel getoond


mvandehoef

Recommended Posts

Dat is een fout in je .tpl. De eerste omschrijving is standaard in beeld. Deze is ook afgekort tot een X aantal tekens. Totdat je op de meer knop drukt. Dan moet de tweede in beeld komen en de eerst uit beeld. De meer tekst gaat dan ook weg.

 

Kijk dus naar je thema. In je template category.tpl moet iets staan als:

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

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