armenak Posted May 3, 2014 Share Posted May 3, 2014 (edited) Hi everyone, I want to have the category description and image show up on the first page of the category only, and not to repeat on all subsequent pages. I've just found the solution for my question but it seems to work only for prestashop 1.3 version. Here is it: http://www.prestashop.com/forums/topic/119271-solved-category-description-and-image-on-first-page-only/ Can anyone help with solution for 1.5-1.6 version ? Thank you in advance. Edited May 3, 2014 by armenak (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 3, 2014 Share Posted May 3, 2014 i checked this solution, you can achieve it in 1.6 in very similar way. but the question is: you've got layered navigation block module enabled? Link to comment Share on other sites More sharing options...
armenak Posted May 4, 2014 Author Share Posted May 4, 2014 Hi, Vekia. Thank you very much for your fast response. Yes, layered navigation block is enabled. Should it be not or should I change anything in its configuration ? Currently, I have this in my category.tpl and I attached layered navigation block configuration. {if $scenes} <!-- Scenes --> {include file="$tpl_dir./scenes.tpl" scenes=$scenes} {else} <!-- Category image --> {if $category->id_image} <div class="align_center category_image "> <img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" /> </div> {/if} {/if} {if $category->description} {if strlen($category->description) > 5000} <p class="cat_desc clearfix" id="category_description_short">{$category->description|truncate:5000} <span onclick="$('#category_description_short').hide(); $('#category_description_full').show();" class="lnk_more_cat"><i class="icon-plus-sign"></i> {l s='More'}</span></p> <p class="cat_desc clearfix" id="category_description_full" style="display:none">{$category->description}<span onclick="$('#category_description_short').show(); $('#category_description_full').hide();" class="lnk_more_cat close_cat"><i class="icon-minus-sign"></i> {l s='Hide'}</span></p> {else} <p class="cat_desc clearfix">{$category->description}</p> {/if} {/if} Link to comment Share on other sites More sharing options...
vekia Posted May 4, 2014 Share Posted May 4, 2014 okay, so with layered navigation block it's a bit complicated cotnents with layered navigation block are loaded dynamically without page refresh, so in fact, each "page" is loaded not as a "new" page, but only contents of center block are reloaded. Link to comment Share on other sites More sharing options...
armenak Posted May 4, 2014 Author Share Posted May 4, 2014 when I eliminate {if $scenes} from that code and add {if ($p==1) ||$p==''}, category image disappears in the first page , but appears again on all other product pages. Category description still remains on all pages . Don't know what to do to force it to show category image and description only on first page as a sort of intro. Link to comment Share on other sites More sharing options...
armenak Posted May 4, 2014 Author Share Posted May 4, 2014 Ok, I see what you mean. But what can be done, in this case, to show category image and description only on first page ? Link to comment Share on other sites More sharing options...
Cvalya Posted July 21, 2014 Share Posted July 21, 2014 This link can help: http://www.prestashop.com/forums/topic/271159-%D0%B4%D0%B5%D0%BB%D0%B0%D0%B5%D0%BC-%D0%B2%D1%8B%D0%B2%D0%BE%D0%B4-%D0%BE%D0%BF%D0%B8%D1%81%D0%B0%D0%BD%D0%B8%D1%8F-%D0%BA%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D0%B8-%D1%82%D0%BE%D0%BB%D1%8C%D0%BA%D0%BE-%D0%BD%D0%B0-%D0%BF%D0%B5%D1%80%D0%B2/ Link to comment Share on other sites More sharing options...
vekia Posted July 22, 2014 Share Posted July 22, 2014 sadly it's cyrylica only ;( any chance to translate it to english? Link to comment Share on other sites More sharing options...
roma77 Posted June 23, 2016 Share Posted June 23, 2016 Hi everyone, I want to have the category description and image show up on the first page of the category only, and not to repeat on all subsequent pages. help with solution for 1.5 version with layered navigation block This {if ($p==1) ||$p==''} and this link: http://www.prestasho...только-на-перв/ dont work. Can anyone help? Thank you in advance. Link to comment Share on other sites More sharing options...
simonainti Posted January 12, 2017 Share Posted January 12, 2017 I have the same issue. Can anyone help? Thanks Link to comment Share on other sites More sharing options...
Tomasz B Posted May 20, 2017 Share Posted May 20, 2017 i have the same problem with 1.7 version. HELP!!! Link to comment Share on other sites More sharing options...
robbie007 Posted May 21, 2017 Share Posted May 21, 2017 Looking for a 1.7 solution too. Link to comment Share on other sites More sharing options...
Marco_Co Posted January 2, 2018 Share Posted January 2, 2018 Is there a solution for 1.7? Link to comment Share on other sites More sharing options...
robbie007 Posted February 13, 2018 Share Posted February 13, 2018 Is there a solution????? For 1.7 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