- Posts: 8
- Thank you received: 0
2 instances of the module?
-
skoegler
Inactive member - Topic Author
- New Member
Less
More
13 years 2 weeks ago - 13 years 2 weeks ago #13405
by skoegler
2 instances of the module? was created by skoegler
I have 1 instance of HOT Joomla Carousel PRO running as an article scroll across the top of my site. I want to add a 2nd instance as a 250x500 Right column list of articles.
When I add it, to the Right position, the top position is displaced and the module does not appear in the Right position. Is it necessary to make changes to the module to have it used in 2 positions?
When I add it, to the Right position, the top position is displaced and the module does not appear in the Right position. Is it necessary to make changes to the module to have it used in 2 positions?
Last edit: 13 years 2 weeks ago by skoegler.
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6761
- Thank you received: 718
13 years 2 weeks ago #13406
by milos
Replied by milos on topic Re: 2 instances of the module?
You can select Category as Source in module parameters.
Please Log in to join the conversation.
-
skoegler
Inactive member - Topic Author
- New Member
Less
More
- Posts: 8
- Thank you received: 0
13 years 2 weeks ago #13408
by skoegler
Replied by skoegler on topic Re: 2 instances of the module?
Sorry I changed my question... please re-read?
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 2 weeks ago #13421
by ivan.milic
Replied by ivan.milic on topic Re: 2 instances of the module?
It's not supported to have two instances on same page, we can modify it if you would want custom job.
Please Log in to join the conversation.
-
skoegler
Inactive member - Topic Author
- New Member
Less
More
- Posts: 8
- Thank you received: 0
13 years 2 weeks ago #13426
by skoegler
Replied by skoegler on topic Re: 2 instances of the module?
What is required to modify to allow for multiple instances?
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 2 weeks ago #13433
by ivan.milic
Replied by ivan.milic on topic Re: 2 instances of the module?
Open \modules\mod_hot_joomla_carousel_pro\tmpl\default.php to see what I'am talking about. When carousel is rendered containing div is like this:
<div id="hotcarouselmodule" class="hotcarousel hidecarousel">
css rules you can also see in beginning of that file mostly begin with .hotcarousel...
so thing is that you need to distinguish carousels on page. You need to generate unique identifier for each of instances so id will be then:
<div id="hotcarouselmodule-1" class="hotcarousel hidecarousel">
and css rules for it will be like this:
#hotcarouselmodule-1.hotcarousel...
this is rough explanation probably you have to get distinguished few other thins
<div id="hotcarouselmodule" class="hotcarousel hidecarousel">
css rules you can also see in beginning of that file mostly begin with .hotcarousel...
so thing is that you need to distinguish carousels on page. You need to generate unique identifier for each of instances so id will be then:
<div id="hotcarouselmodule-1" class="hotcarousel hidecarousel">
and css rules for it will be like this:
#hotcarouselmodule-1.hotcarousel...
this is rough explanation probably you have to get distinguished few other thins
Please Log in to join the conversation.
Time to create page: 0.147 seconds