Jump to content

How I do place Block CMS in header section?


Recommended Posts

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

@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 :wacko:

 

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 by gfdesign (see edit history)
Link to comment
Share on other sites

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 by yaniv14 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...