Jump to content
mvandehoef

[SOLVED] Beschrijving subcategorie wordt dubbel getoond

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}

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More