Discussion about Hot Spinner Joomla module.

Add Additional Content Slots

More
13 years 5 months ago #9696 by planethop
Is it possible to modify the module code to Add Additional Content Slot beyond the existing 10?

Please Log in to join the conversation.

More
13 years 5 months ago #9711 by ivan.milic
Yes,

you need to alter:

1.mod_hot_spinner.xml
Code:
<param name="@settings" type="title" label="LABEL SLOT10" description="" /> <param 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> </param> <param name="staticImage10" type="text" default="" label="LABEL STATIC IMAGE" description="DESC STATIC IMAGE" /> <param name="rotatingImage10" type="text" default="" label="LABEL ROTATING IMAGE" description="DESC ROTATING IMAGE" /> <param name="slotHeading10" type="text" default="" label="LABEL SLOT HEADING" description="DESC SLOT HEADING" /> <param name="slotText10" type="textarea" default="" cols="40" rows="4" label="LABEL TEXT" description="DESC TEXT" /> <param name="slotLink10" type="text" default="" label="LABEL LINK" description="DESC LINK" />

above is definition for 10-th slot, to meka one more copy it after and change 10 to 11 in copy.


2.mod_hot_spinner.php

replace $loop <= 10 with $loop <= 11 (it appears 6 times)

3.tmpl\default.php

replace $loop <= 10 with $loop <= 11


I described you hot to make 11-tm slot , if you want more the story is the same.
The following user(s) said Thank You: planethop

Please Log in to join the conversation.

More
13 years 5 months ago #9739 by planethop
Worked perfectly. Just make sure after added code is the "</param>" code. Didn't work until I figured that out.

Thanks!!!

Please Log in to join the conversation.

More
13 years 3 months ago #10512 by planethop
I modified the xml file to have slots for 60 rotating images. 60 Slots show up in the module backend; but only 16 show up on the front end.
How can I display all 60 images in the spinner? What file do I have to modify?

Please Log in to join the conversation.

More
13 years 3 months ago #10519 by ivan.milic
js file powering spinner has no such limitation, so you can have as much images as you extend joomla module in way described is earlier post. Maybe you have some type error on 17-th xml element, or something like that. Also I'm not sure displaying 60 images in spinner could be handled by today's commuter CPUs to appear normal.

Please Log in to join the conversation.

Time to create page: 0.155 seconds
Powered by Kunena Forum