janditlev Posted September 12, 2014 Share Posted September 12, 2014 How do I make the descriptions always show in full, so I do not need to press "more" to expand the description? I tried to set dynamic to "No", but this does not do anything. Link to comment Share on other sites More sharing options...
loulou66 Posted September 12, 2014 Share Posted September 12, 2014 Hi in category.tpl modify this section {if Tools::strlen($category->description) > 350} <div id="category_description_short">{$description_short}</div> <div id="category_description_full" class="unvisible">{$category->description}</div> <a href="{$link->getCategoryLink($category->id_category, $category.link_rewrite)|escape:'html':'UTF-8'}" class="lnk_more">{l s='More'}</a> {else} <div>{$category->description}</div> {/if} @++ Loulou66 Link to comment Share on other sites More sharing options...
janditlev Posted September 12, 2014 Author Share Posted September 12, 2014 Thanks LouLou, I am running PS 1.6.0.9. and what exactly is it that I should change in the category.tbl that you mentioned? Jean Link to comment Share on other sites More sharing options...
janditlev Posted September 12, 2014 Author Share Posted September 12, 2014 Problem solved set string length to 200 instead of 350. Link to comment Share on other sites More sharing options...
vekia Posted September 12, 2014 Share Posted September 12, 2014 change whole code to <div>{$category->description}</div> and what if oyur category will have 150 chars? it will not appear Link to comment Share on other sites More sharing options...
Recommended Posts