Jump to content

"modules_to_hook" in themes.yml is ignored


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 ?

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