Discussion about Hot Spinner Joomla module.

Need more than 10 slots

More
12 years 8 months ago - 12 years 8 months ago #17374 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
Last edit: 12 years 8 months ago by GoldenRetriever.

Please Log in to join the conversation.

More
12 years 8 months ago #17380 by ivan.milic
In modules\mod_hot_spinner\mod_hot_spinner.xml

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.

More
12 years 8 months ago #17381 by GoldenRetriever
You are a legend. It works. :)
Thanks very much Ivan

Please Log in to join the conversation.

Time to create page: 0.155 seconds
Powered by Kunena Forum