karin Posted November 7, 2013 Share Posted November 7, 2013 Wenn im Produktlisting die Categorienbeschreibung 2mal angezeigt wird, bitte nicht wundern. Sie steht auch 2mal im Quellcode. Also einmal im Quellcode löschen. Link to comment Share on other sites More sharing options...
Magicalname Posted November 8, 2013 Share Posted November 8, 2013 (edited) 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 November 8, 2013 by Magicalname (see edit history) Link to comment Share on other sites More sharing options...
guest* Posted November 8, 2013 Share Posted November 8, 2013 Bugs bitte in Englischer Sprache hier deponieren: http://forge.prestashop.com Link to comment Share on other sites More sharing options...
Mutabor Posted November 8, 2013 Share Posted November 8, 2013 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now