Create dynamic list items by amount of all images in FTP fol
Posted: Mon Mar 21, 2016 12:27 pm
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....
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....