- Posts: 4
- Thank you received: 0
Discussion about Hot Spinner Joomla module.
Need more than 10 slots
-
GoldenRetriever
Inactive member - Topic Author
- New Member
Less
More
12 years 8 months ago - 12 years 8 months ago #17374
by GoldenRetriever
Need more than 10 slots was created by GoldenRetriever
Currently the HOT spinner only allows for ten Content Slots. Is there anyway I can have more than 10, says around 18 slots?
Thanks very much for any help. Cheers
Thanks very much for any help. Cheers
Last edit: 12 years 8 months ago by GoldenRetriever.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 8 months ago #17380
by ivan.milic
Replied by ivan.milic on topic Re: Need more than 10 slots
In modules\mod_hot_spinner\mod_hot_spinner.xml
add copies of slot elements:
just instead of 10 use 11,12,13 and so on...
In modules\mod_hot_spinner\mod_hot_spinner.php
you will see 7 for loops like this:
replace 10 with number of slots you will have.
At the end open:
modules\mod_hot_spinner\tmpl\default.php
at bottom there is one more for loop where you need to change 10 to your number of slots.
add copies of slot elements:
Code:
<fieldset name="slot10" label="LABEL SLOT10">
<field name="slot10" type="list" default="0" label="LABEL ENABLE SLOT" description="DESC ENABLE SLOT">
<option value="1">LABEL ENABLED</option>
<option value="0">LABEL DISABLED</option>
</field>
<field name="staticImage10" type="text" default="" label="LABEL STATIC IMAGE" description="DESC STATIC IMAGE" />
<field name="rotatingImage10" type="text" default="" label="LABEL ROTATING IMAGE" description="DESC ROTATING IMAGE" />
<field name="slotHeading10" type="text" default="" label="LABEL SLOT HEADING" description="DESC SLOT HEADING" />
<field name="slotText10" type="textarea" default="" cols="40" rows="4" label="LABEL TEXT" description="DESC TEXT" />
<field name="slotLink10" type="text" default="" label="LABEL LINK" description="DESC LINK" />
</fieldset>
just instead of 10 use 11,12,13 and so on...
In modules\mod_hot_spinner\mod_hot_spinner.php
you will see 7 for loops like this:
Code:
for ($loop = 1; $loop <= 10; $loop += 1) {...
replace 10 with number of slots you will have.
At the end open:
modules\mod_hot_spinner\tmpl\default.php
at bottom there is one more for loop where you need to change 10 to your number of slots.
Please Log in to join the conversation.
-
GoldenRetriever
Inactive member - Topic Author
- New Member
Less
More
- Posts: 4
- Thank you received: 0
12 years 8 months ago #17381
by GoldenRetriever
Replied by GoldenRetriever on topic Re: Need more than 10 slots
You are a legend. It works.
Thanks very much Ivan
Thanks very much Ivan
Please Log in to join the conversation.
Time to create page: 0.155 seconds