Hi!
Problem is if i upload only 1 image, rest of 2 will be blank
I'm wondering is it possible to make admin selectable option choose how much images will be shown in page?
i think these lines need be add able and removable
and
whole code:
Problem is if i upload only 1 image, rest of 2 will be blank
I'm wondering is it possible to make admin selectable option choose how much images will be shown in page?
i think these lines need be add able and removable
- Code: Select all
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
and
- Code: Select all
<div class="item">
<img class="img-responsive" src="<cms:show image_3 />" alt="">
</div>
whole code:
- Code: Select all
<cms:editable name='group_img1' label='#Cover' desc='Augšupielādēt attēlus' type='group' />
<cms:editable
name='image_1'
label='attēls 1'
desc='Upload šeit'
crop='1'
width='750'
height='450'
group='group_img1'
type='image'
/>
<cms:editable
name='image_2'
label='attēls 2'
desc='Upload šeit'
crop='1'
width='750'
height='450'
group='group_img1'
type='image'
/>
<cms:editable
name='image_3'
label='attēls 3'
desc='Upload šeit'
crop='1'
width='750'
height='450'
group='group_img1'
type='image'
/>
- Code: Select all
<div class="col-md-8">
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img class="img-responsive" src="<cms:show image_1 />" alt="">
</div>
<div class="item">
<img class="img-responsive" src="<cms:show image_2 />" alt="">
</div>
<div class="item">
<img class="img-responsive" src="<cms:show image_3 />" alt="">
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
</div>