Jump to content

How to add the same module multiple time in a page


mariettuz

Recommended Posts

Hi community, what I'am asking today is if it's possible to hook a module multiple time in the same page.

The module in question is a carousel and I want to hook this module multiple times in the home page and also in some other pages.

Each istance of the carousel must be able to display some custom products and other information.

Thanks in advance to all the ones that will help me solving this problem.

Link to comment
Share on other sites

you would need to add the named hooks to the module code....you will not be able to configure the module by hook, or you may want to consider copying the moudle (to new name) modify the module for that specific hook, then you can configure by hook.

 

suerte

Link to comment
Share on other sites

Thank you for your quick repsonse.

Let me see if I understand...what you suggest me is to duplicate the module one time for every hook that I want in my pages.

Right?

 

P.S: thanks again!

 

it's really gets down to whether or not it's configurable...i.e. you want different content in different hooks....from a programming stand point it would probably be easier to clone the module, update for the hook you want to use. You will need to make sure that the cloned module uses it's own configuration values.

 

this is just one approach, and it all depends on configurable (different data) by hook.

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