Jump to content

How to move homeslider to right or left column on every page?


lutol

Recommended Posts

I made some modifications in both file tpl and module (prestashop 1.6+) and it appears on right column but only on homepage. When I click anything else it disappears. 

 

In homeslider.tpl I removed this line:

{if $page_name =='index'}

In module/homeslider/homeslider.php I added the right column hook:

    public function hookdisplayRightColumn($params)
    {
        return $this->hookDisplayHome();
    }

and also removed from hookdisplayHeader($params) function

if (!isset($this->context->controller->php_self) || $this->context->controller->php_self != 'index')
  return;

what else I need to change to make it work?

Edited by lutol (see edit history)
Link to comment
Share on other sites

Hello

 

Just wondered if you have had a look at the popular free slider

 

https://www.prestashop.com/forums/topic/310597-free-module-sliders-everywhere-responsive-gallery-image-sliders-or-banners-now-3d/

 

Paul

Thank you, I'm new to prestashop and I didn't know about it. I've already downloaded and tested - I like it. I'd like also someone to show me how to solve the problem because I've spent some time thinking, and I'm really curious why this isn't showing on other pages only home page.

Link to comment
Share on other sites

Hello again

 

How have you configured the module? is it set up for displaying in the Left/Right column

 

http://screencast.com/t/jOq811fq

 

If you have set the module up correctly then have you configured the Left/Right columns in:

 

Back office > Preferences > Themes > Advanced settings

 

http://screencast.com/t/KluidF1oQ

 

This is how it looks for me on Category Page

 

http://screencast.com/t/k4JcqNNkT

 

Paul

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...