grze11 Posted August 16, 2016 Share Posted August 16, 2016 Hej mam problem z block cms info chciałem wczepić go do footer używam presty 1.6 i domyślnie można go wczepić jedynie do displayHome, próbowałem dodać do blockcmsinfo.php kod $this->registerHook('footer') && public function install() { return parent::install() && $this->installDB() && $this->registerHook('home') && $this->registerHook('footer') && $this->installFixtures() && $this->disableDevice(Context::DEVICE_TABLET | Context::DEVICE_MOBILE); } i public function hookFooter($params) { $this->context->controller->addCSS($this->_path.'style.css', 'all'); if (!$this->isCached('blockcmsinfo.tpl', $this->getCacheId())) { $infos = $this->getInfos($this->context->language->id, $this->context->shop->id); $this->context->smarty->assign(array('infos' => $infos, 'nbblocks' => count($infos))); } } w panelu moduł można dodac do footera i w Moduły / pozycji blok pojawia sie w displayFooter ale nie wyswietla sie na stronie Prosze o pomoc. Link to comment Share on other sites More sharing options...
atomek Posted August 16, 2016 Share Posted August 16, 2016 spróbuj tak: public function hookFooter($params) { return $this->hookHome($params); } Link to comment Share on other sites More sharing options...
grze11 Posted August 17, 2016 Author Share Posted August 17, 2016 Podziękował dział pierwsza klasa 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