Ikben.Maurice Posted May 22, 2014 Share Posted May 22, 2014 (edited) Hello, I want to add a CMS block to the right column. Add the moment it is the tekst "Dit wordt dus HTML." But still need to change it to Picture. Thanks you already! Greetz, Maurice CMS block to the right side. and the footer needs to be full width: Edited May 27, 2014 by Ikben.Maurice (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted May 23, 2014 Share Posted May 23, 2014 It seems the module doesn't support that position. You need to edit the blockcmsinfo.php file and clone this method public function hookHome($params) { $this->context->controller->addCSS($this->_path.'style.css', 'all'); if (!$this->isCached('blockcmsinfo.tpl', $this->getCacheId())) { $infos = $this->getListContent($this->context->language->id, $this->context->shop->id); $this->context->smarty->assign(array('infos' => $infos, 'nbblocks' => count($infos))); } return $this->display(__FILE__, 'blockcmsinfo.tpl', $this->getCacheId()); } Then change its name to hookDisplayRightColumn Link to comment Share on other sites More sharing options...
Ikben.Maurice Posted May 23, 2014 Author Share Posted May 23, 2014 I am a bit rookie in this, can you explain it more detailed? I need to copy blockcmsinfo.php and add your code in the blockcmsinfo.php and then rename it is hookdisplayrightcolumn.php? And upload the new module to prestashop? Link to comment Share on other sites More sharing options...
NemoPS Posted May 24, 2014 Share Posted May 24, 2014 No no, just clone that method, and change the name to public function hookDisplayRightColumn($params) 1 Link to comment Share on other sites More sharing options...
Ikben.Maurice Posted May 26, 2014 Author Share Posted May 26, 2014 (edited) My bad... You are right. I failed. Thank you very much and will mark it solved Edited May 26, 2014 by Ikben.Maurice (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 26, 2014 Share Posted May 26, 2014 btw. you can use a lot of other free modules to create custom content blocks there, and also in other parts of shop. modules like html box free, content box - both of them are totally free Link to comment Share on other sites More sharing options...
Recommended Posts