Jump to content

[Solved] Move Home text editor to right_column


Recommended Posts

I want to move the image and text from Home Text Editor into the top of the right column on the homepage.

I tried moving it in the modules >positions area in the admin but this would not allow me.

I think from reading round I have to tell the module that it is compatible with the {$HOOK_RIGHT_COLUMN}?

I am just a bit unsure as to how to go about this.. I have been using presta shop for 3 days now and have figured out loads of other small bits and pieces on the forum. So far it seems like a really good script with a helpful community.

any help would be greatly appreciated.

Thanks Michael

Link to comment
Share on other sites

figured it out after playing round for a while there, basically had to go into the editorial module and in the editorial.php file add in the code below:

    public function hookRightColumn()
   {
       global $cookie, $smarty;

       $editorial = new EditorialClass(1, (int)$cookie->id_lang);
       $smarty->assign(array(
           'editorial' => $editorial,
           'default_lang' => (int)$cookie->id_lang,
           'image_width' => Configuration::get('EDITORIAL_IMAGE_WIDTH'),
           'image_height' => Configuration::get('EDITORIAL_IMAGE_HEIGHT'),
           'id_lang' => $cookie->id_lang,
           'homepage_logo' => file_exists('modules/editorial/homepage_logo.jpg'),
           'image_path' => $this->_path.'homepage_logo.jpg'
       ));
       return $this->display(__FILE__, 'editorial.tpl');
   }

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...