Create dynamic list items by amount of all images in FTP fol

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
abraham22
New Member
New Member
Posts: 1
Joined: Mon Mar 21, 2016 12:12 pm

Create dynamic list items by amount of all images in FTP fol

Post by abraham22 »

Hi guys

So I have this HTML code in my home template in cms ms 1.12.1 Rontiki:
<div id="banner">
<ul class="bxslider">
<li class="one"></li>
<li class="two"></li>
<li class="three"></li>
<li class="four"></li>
</ul>
</div>

The CSS of the list items:
li.one {
background: url("[[root_url]]/uploads/layout/banner1.jpg") no-repeat center center;
background-size: cover;
background-attachment: fixed;
height: 300px;
width: 100%;
}

Now my question is, that I have about 27 images for the banner, and I don't want to create 27 list items manually. It should be dynamic. If there is in the FTP in the folder: [[root_url]]/uploads/layout/banner/ like 27 images, it should create 27 list items. Any ideas?

Thank you for the help....
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Create dynamic list items by amount of all images in FTP

Post by Jos »

You can use the Gallery module.
It automatically reads the images from a directory. The directory just needs to be under uploads/images/Gallery
Post Reply

Return to “Modules/Add-Ons”