Jump to content

noch ein Fehler in 1.5.6


Recommended Posts

Ja das Problem habe ich auch nur bei mir steht der Text nur 1x im Qullcode.

 

Edit: Nein habe am falschen Ort gesucht alles richtig. Ihr müsst einfach in der

category.tpl Zeile 59 - 67 bearbeiten.

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

ersetzen mit

<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>
Edited by Magicalname (see edit history)
Link to comment
Share on other sites

Hi Karin und Magicalname,

 

die Lösung wurde bereits im Oktober bei Github gepostet. Der Code ist schon korrekt, Magicalname, bis auf eine Kleinigkeit. Statt einem Absatz (<p>) muss jeweils ein DIV-Tag gesetzt werden:

                        {if $category->description}
                                <div class="cat_desc">
                                {if strlen($category->description) > 120}
                                        <div id="category_description_short">{$category->description|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}
                                        <p>{$category->description}</p>
                                {/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...