steamalicious Posted February 26, 2014 Share Posted February 26, 2014 (edited) Hi all, I am relatively new to prestashop (running 1.5.6) and very much a beginner when it comes to coding.So far, I luckily managed to get all problems solved myself but now i am stuck :-(. I am using the blockcms-module to display two blocks in the left column, whilst the cms pages stretch across the remaining width of the page (2 column layout). The first block links to general product information pages, the second block links to pages about the company. What I would like to achieve? Ideally, the first block should disappear when the user is browsing through the company pages. Further, the second block should disappear, when the general product information pages are viewed. I tried to use the cms page id to switch blockcms on and off without success (things like {$smarty.get.id_cms} or {$cms->id} or {$cms.id} from other threads). Maybe, there is also a much simpler way to do it? Any hints or coding samples would be very much appreciated! Many, many thanks for your help! Edited February 26, 2014 by steamalicious (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted February 26, 2014 Share Posted February 26, 2014 Quote is browsing through the company pages what you mean by company pages? Link to comment Share on other sites More sharing options...
steamalicious Posted February 27, 2014 Author Share Posted February 27, 2014 Well, I have cms pages which belong to two different categories: > pages containing information about our products => 1st category > pages containing information about our company (i.e. "company pages") => 2nd category Link to comment Share on other sites More sharing options...
steamalicious Posted February 27, 2014 Author Share Posted February 27, 2014 I uploaded a rough sketch of what I mean to my dropbox: https://www.dropbox.com/s/j685wn76ggr49zf/blockcms.jpg In the very top is the homepage with the two cms-blocks in the left column. Upon navigating to the Product Information CMS, the "Company blockcms" should disappear and vica versa. Hope, that helps a little to understand what I am after... Link to comment Share on other sites More sharing options...
hi2014 Posted March 2, 2014 Share Posted March 2, 2014 That is what I thought you meant. As I recall, there is a menu selection somewhere that allows you to check boxes of where you want modules to show and not show. Beyond just positioning. I will take a moment later and see if I can locate that, but you may find it sooner than I get a chance, knowing there is something like that. Link to comment Share on other sites More sharing options...
steamalicious Posted March 3, 2014 Author Share Posted March 3, 2014 That's very true in general. However, these check boxes do control the behaviour of the entire module. Hence, both cms-blocks are either displayed or not. Controlling them individually would only work, if they would each belong to a separat module. However, I might have done something wrong when testing... Hm... Link to comment Share on other sites More sharing options...
gloginko Posted April 5, 2014 Share Posted April 5, 2014 I have been trying to achieve the same as you - no luck so far You are completely right that selecting on which pages the cms categories block to appear will not be a solution - since the whole block with both categories will disappear or appear respectively. I was also trying to achieve a drop down style menu - in the navigation bar for my CMS pages. Currently each separate CMS page under the same CMS category appear in horizontal manner (next to each other) when you click on the navigation bar. I want them to appear in vertical positions - as a drop down list. Do you have any idea how this might be achieved ? Link to comment Share on other sites More sharing options...
Paulito Posted April 5, 2014 Share Posted April 5, 2014 Good morning If you mean like this: http://testskunk.co.uk/ Then make a CMS page and then add children to that page http://screencast.com/t/i7k6q5ktl Paul Link to comment Share on other sites More sharing options...
gloginko Posted April 7, 2014 Share Posted April 7, 2014 HI, Thanks for the suggested solution. What i'm trying to achieve are 2 things: 1. The CMS block that has several "children" CMS pages in it to be collapssible and expandable. Similarly to a regular cateories/products block. - there is a "+" sign to expand and view the subcategories of the block and "-" sign to collapse it. 2. The second goal i', trying to achieve is : I have created already 3 different CMS categories/blocks - each one has different CMS sub pages All 3 CMS blocks are visible on the homepage - in the left column I want when clicking on one of these 3 CMS blocks - or respecitvely one of its sub pages, to be redirected to the corresponding CMS page, but to have the other 2 CMS blocks hide from the left column 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