hamid84 Posted May 5, 2013 Share Posted May 5, 2013 Hi I would like to display text on Home Page using Home Text Editor module but it does not play it anywhere. Can someone point out what mistake im making or need to do? My site add is www.softhands.dotco.uk Right now the text you see, is using the another module but it displays text on everypage which i dont want. Thanks 2 Link to comment Share on other sites More sharing options...
vekia Posted May 5, 2013 Share Posted May 5, 2013 where you want to display this text? on homepage only? or of each page in your store? Link to comment Share on other sites More sharing options...
hamid84 Posted May 5, 2013 Author Share Posted May 5, 2013 Just on Home Page on top of slide banner. Link to comment Share on other sites More sharing options...
vekia Posted May 6, 2013 Share Posted May 6, 2013 go to the modules -> positions, search for your module on list (it is attached to the TOP section), click on edit icon. Then you can specify some exceptions - add all pages where you don't want to show it Link to comment Share on other sites More sharing options...
nadie Posted May 6, 2013 Share Posted May 6, 2013 go to the modules -> positions, search for your module on list (it is attached to the TOP section), click on edit icon. Then you can specify some exceptions - add all pages where you don't want to show it Or edit "tpl" of the module and add {if $page_name=='index') code_module {/if} Sorry for my English. 1 Link to comment Share on other sites More sharing options...
hamid84 Posted May 6, 2013 Author Share Posted May 6, 2013 all done... worked great. Link to comment Share on other sites More sharing options...
nadie Posted May 6, 2013 Share Posted May 6, 2013 all done... worked great. Which of the two solutions, has applied to the end? Sorry for my English By the way, add the word "solved" to the title of the topic. Sorry for my English. The solution that the user "Vekia" commented is the more correct. Link to comment Share on other sites More sharing options...
vekia Posted May 6, 2013 Share Posted May 6, 2013 the problem is finally solved so I marked this thread as solved thanks nadie for the cooperation :-) regards Link to comment Share on other sites More sharing options...
nadie Posted May 6, 2013 Share Posted May 6, 2013 thanks nadie for the cooperation :-) regards For me it is an honor help and serve. regards, Sorry for my English Link to comment Share on other sites More sharing options...
Tayo Posted December 14, 2013 Share Posted December 14, 2013 We are using PS 1.5.5. and we want the same thing, display the Home Text Editor (editorial) above the slider but when I try to transplant this module to displayTop I get an error "This module cannot be transplanted to this hook." Is this not possible anymore in 1.5.5? Link to comment Share on other sites More sharing options...
vekia Posted December 14, 2013 Share Posted December 14, 2013 hello you have to add in module .php file this function: public function hookDisplayTop($params) { if (!$this->isCached('editorial.tpl', $this->getCacheId())) { $id_shop = (int)$this->context->shop->id; $editorial = EditorialClass::getByIdShop($id_shop); if (!$editorial) return; $editorial = new EditorialClass((int)$editorial->id, $this->context->language->id); if (!$editorial) return; $this->smarty->assign(array( 'editorial' => $editorial, 'default_lang' => (int)$this->context->language->id, 'image_width' => Configuration::get('EDITORIAL_IMAGE_WIDTH'), 'image_height' => Configuration::get('EDITORIAL_IMAGE_HEIGHT'), 'id_lang' => $this->context->language->id, 'homepage_logo' => !Configuration::get('EDITORIAL_IMAGE_DISABLE') && file_exists('modules/editorial/homepage_logo_'.(int)$id_shop.'.jpg'), 'image_path' => $this->_path.'homepage_logo_'.(int)$id_shop.'.jpg' )); } return $this->display(__FILE__, 'editorial.tpl', $this->getCacheId()); } Link to comment Share on other sites More sharing options...
Tayo Posted December 14, 2013 Share Posted December 14, 2013 Thanks Vekia, with this code there is no error message and I can place it at displayTop. Link to comment Share on other sites More sharing options...
Ravi Parmar Posted February 12, 2014 Share Posted February 12, 2014 @vekia : I have issued I have display content in only 'Home page' how can do it. using 'Home Text Editor' Can you Suggest me. Thank you. Link to comment Share on other sites More sharing options...
vekia Posted February 12, 2014 Share Posted February 12, 2014 in fact, this moduel is usually attached to home hook, this hook appears only on homepage. 1 Link to comment Share on other sites More sharing options...
Recommended Posts