gfdesign Posted November 20, 2012 Share Posted November 20, 2012 I try to place in header section of my site, links to CMS pages. I guess I must do it using BlockCMS but this doesn't let me place in that position (only left_column, right_column and footer) What am I doing wrong? Any idea? Regards Link to comment Share on other sites More sharing options...
Prestawise Posted November 20, 2012 Share Posted November 20, 2012 What hook are you trying to place the blockcms in? And do you get some kind of error when trying to move the block to another position? Link to comment Share on other sites More sharing options...
yaniv14 Posted November 20, 2012 Share Posted November 20, 2012 You need to hook it to the header, in BO go to modules -> positions -> Transplant a module -> choose the module CMS Block from the list and hook it into the header (header of pages -> displayheader). If you have it hook to another place just delete it from there also from modules/positions Link to comment Share on other sites More sharing options...
gfdesign Posted November 20, 2012 Author Share Posted November 20, 2012 (edited) @Napz and @yaniv14 many thanks for your replies. What I'd want is to put a Block CMS in the header area in all pages of my theme in order to users can see anytime all cms pages as second main menu. Maybe I'm not understanding correctly how to move a module into a special hook/zone/area For example, how would you do if you want to have a list of CMS pages in the header in the default theme? When I use "Live Edit" box, I can see is impossible to move any module to Header section or Footer (only Left, Center and Right columns) Regards Edited November 20, 2012 by gfdesign (see edit history) Link to comment Share on other sites More sharing options...
yaniv14 Posted November 20, 2012 Share Posted November 20, 2012 Can you take a snapshot of how you want it to look? Link to comment Share on other sites More sharing options...
gfdesign Posted November 20, 2012 Author Share Posted November 20, 2012 (edited) Taking as reference the default Theme, I'd want to put a customized Block CMS here: http://www.imagesup....i=1513534369987 Pd: Sorry, I don't know why I can't post images on posts. Edited November 20, 2012 by gfdesign (see edit history) Link to comment Share on other sites More sharing options...
yaniv14 Posted November 20, 2012 Share Posted November 20, 2012 What are the 4 links you have there, custom pages or Prestashop build in pages? I don't understand Spanish. Also do you need to change those links from time to time or they will remain the same all the time? Link to comment Share on other sites More sharing options...
gfdesign Posted November 20, 2012 Author Share Posted November 20, 2012 Sorry, those would be PS pages using CMS Pages (something like: company, services, legal information, etc) I know how to do it in a static way, but I would like to add more anytime. Link to comment Share on other sites More sharing options...
yaniv14 Posted November 20, 2012 Share Posted November 20, 2012 (edited) Its not difficult to hook the cms block to the Top of pages but the problem is giving it separate style in css (because you also going to load it on the left/right columns), so I think maybe you should duplicate the module (under different name). and than hook the new module to the top? If you want to do it like that you can: 1) setup your desire links in the Left Blocks in the new module. 2) edit blockcms.php in the new module and add: public function hookTop() { return $this->displayBlockCMS(BlockCMSModel::LEFT_COLUMN); } 3) Hook Block CMS to top of pages. 4) modify css for new module. Thats how I see it, but maybe someone with better skills and more experiences than me can come with better solution. here is a tutorial on duplicating modules: http://www.addons-modules.com/prestashop-tips/2011/01/prestashop-tips-how-to-duplicate-an-existing-module/ Edited November 20, 2012 by yaniv14 (see edit history) Link to comment Share on other sites More sharing options...
gfdesign Posted November 21, 2012 Author Share Posted November 21, 2012 Ok, I'll try it. I thought that it would be easier. I still don't understand why this module exists in "Header of pages" position if you can't see it there in Front-Office side. Anyway, your help has been very useful. Many thanks Link to comment Share on other sites More sharing options...
Recommended Posts