Jump to content

"modules_to_hook" in themes.yml is ignored


Cawet
 Share

Recommended Posts

Hi,

I can't make the "module_to_hook" config work properly :

in themes/goninTheme/config/themes.ytml

 hooks:
    custom_hooks:
       #...
    modules_to_hook:
      displayNav:
        - ps_customersignin
        - ps_shoppingcart
      displayTop:
        - g_megamenu
      displayHomeTop:
        - ps_imageslider
        - ps_featuredproducts
        - ps_banner
      displayCategoryBottomDescription:
        - gonincommon

then I remove the config/themes/.../shop1.json file, I click on the reset button in the theme configuration page of my theme in the back office.

It's working for the "displayNav" and displayTop hook, but not for my custom hook "displayHomeTop". Anymore, some module are added at some hook that I don't want.

How this configuration work, and how to not manually set module position every time the theme is reseted ?

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More