Jump to content

adding a new Hook


Recommended Posts

Hi People,

Im working for days now on a problem i have. I like to add a new hook to show a Slider with full widht. So im adding a new hook in file theme.yml like this: 

displaySlider:

- ps_imageslider

 

After this im adding this to layout-both-colums.tpl :

{if $page.page_name == 'index'} {hook h='displaySlider'} {/if}      just in the right places. Im following the steps of BELVG, please see the link: 

 

But i cant get anny results on my admin panel and website even if i clear the performanse and forcing compilation. The same problem i have when i like to change the css files. No effect!

Can someone tell me what im doing wrong please?

Link to comment
Share on other sites

  • 3 months later...

Hello,
I had a similar problem
I have overwritten the ps_imageslider module

my new hook is "displayHomeTop1".

            $this->registerHook('displayHeader') &&
            $this->registerHook('displayHome') &&
            $this->registerHook('displayHomeTop1') &&
            $this->registerHook('actionShopDataDuplication')

just overwrite the module and clean it.

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