Simplex Teaser not working
Posted: Tue Dec 11, 2012 11:43 am
Hi
I'm trying to get the Teaser function from the Simplex template (CMSMS1.11.3) to work in another template of my own.
For now, I've copied the styles to the css sheet and the code to the template. Changed paths etc
Nothing shows at all.
The HTML
The CSS
WHat am I missing? Am I just being dim?
I'm trying to get the Teaser function from the Simplex template (CMSMS1.11.3) to work in another template of my own.
For now, I've copied the styles to the css sheet and the code to the template. Changed paths etc
Nothing shows at all.
The HTML
Code: Select all
<div class="banner-image cf">{assign var='teaser' value='uploads/images/teaser/*.jpg'|glob} {foreach from=$teaser item='one'}
<div><img src="{root_url}/{$one}" alt="" width="300" height="300" /></div>
{/foreach}</div>
Code: Select all
.banner-image {
float:right;
display: block;
position: relative;
width: 67.667%;
overflow: hidden;
background: [[$grey]]
}
.banner-image div {
position: absolute;
z-index: 0;
width: 100%;
min-height: 100px;
overflow: hidden;
display: block;
top: 0;
left: 0
}
.banner-image img {
display: block;
height: auto;
width: 100%;
bottom: 0;
max-width: 100%;
}
.cf:before,
.cf:after,
.row:before,
.row:after{
content: "";
display: table
}
.cf:after,
.row:after{
clear: both
}
.cf,
.row {
*zoom: 1
}