- Posts: 4
- Thank you received: 0
Add more Slide in administration
-
etori
Inactive member - Topic Author
- New Member
Less
More
10 years 4 months ago #41584
by etori
Add more Slide in administration was created by etori
Friends,
I want to add more event entries, but in the administration of the module there are only 20.
How can I add more?
How is: www.elisaandreoli.com.br
Etori Amorim
I want to add more event entries, but in the administration of the module there are only 20.
How can I add more?
How is: www.elisaandreoli.com.br
Etori Amorim
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 3 months ago #41587
by ivan.milic
Replied by ivan.milic on topic Add more Slide in administration
First open mod_hot_film_tape.xml in module folder , you will find this xml:
make a copy and put iy just under that replacing 20 width 21. Repeat step for as menu slots as you need.
Open mod_hot_film_tape.xml
in few places you will see:
for ($loop = 1; $loop <= 20; $loop += 1) {
replace 20 with number of slots you have.
Finally open /tmpl/default.php
find :
for ($loop = 1; $loop <= 20; $loop += 1) {
replace 20 with number of slots you have.
that's it
Code:
<fieldset name="image20" label="LABEL IMAGE20">
<field name="enableSlide20" type="list" default="false" label="LABEL ENABLE SLIDE" description="DESC ENABLE SLIDE">
<option value="true">Enable</option>
<option value="false">Disable</option>
</field>
<field name="image20content" type="editor" filter="raw" default="" label="LABEL IMAGE CONTENT" description="DESC IMAGE CONTENT" />
<field name="image20link" type="text" default="" label="LABEL IMAGE LINK" description="DESC IMAGE LINK" />
<field name="image20title" type="text" default="" label="LABEL IMAGE TITLE" description="DESC IMAGE TITLE" />
</fieldset>
make a copy and put iy just under that replacing 20 width 21. Repeat step for as menu slots as you need.
Open mod_hot_film_tape.xml
in few places you will see:
for ($loop = 1; $loop <= 20; $loop += 1) {
replace 20 with number of slots you have.
Finally open /tmpl/default.php
find :
for ($loop = 1; $loop <= 20; $loop += 1) {
replace 20 with number of slots you have.
that's it
The following user(s) said Thank You: etori
Please Log in to join the conversation.
-
etori
Inactive member - Topic Author
- New Member
Less
More
- Posts: 4
- Thank you received: 0
10 years 3 months ago #41591
by etori
Replied by etori on topic Add more Slide in administration
Perfect!
Thank you Ivan!
Thank you Ivan!
Please Log in to join the conversation.
-
mattia
Inactive member - New Member
Less
More
- Posts: 2
- Thank you received: 0
9 years 11 months ago #44082
by mattia
Replied by mattia on topic Add more Slide in administration
Good Morning
I should also add other 2 slides
I copied and put under <fieldset name = "image20" label = "LABEL IMAGE20"> with 21/22
I modified the default.php for ($ loop = 1; $ loop <= 22; $ loop + = 1) {
Now in the backend module I can enter two new slide but not displayed on the frontend
How can I fix the problem?
I should also add other 2 slides
I copied and put under <fieldset name = "image20" label = "LABEL IMAGE20"> with 21/22
I modified the default.php for ($ loop = 1; $ loop <= 22; $ loop + = 1) {
Now in the backend module I can enter two new slide but not displayed on the frontend
How can I fix the problem?
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6753
- Thank you received: 718
9 years 11 months ago - 9 years 11 months ago #44100
by milos
Replied by milos on topic Add more Slide in administration
You should also modify file mod_hot_film_tape.php. You have number 20 in four places there.
Regards
Regards
Last edit: 9 years 11 months ago by milos.
The following user(s) said Thank You: mattia
Please Log in to join the conversation.
Time to create page: 0.169 seconds