I have a grid layout that shows 4 images per row in a container. Unfortunately, I cannot put all images in one row, as the image grid would break in some browsers.
Hence, after displaying 4 images in one row and container, I want to display the next four images in a new row with their own container using a repeatable region:
The HTML-markup should look like this:
Would appreciate your guidance how to get this working.
Hence, after displaying 4 images in one row and container, I want to display the next four images in a new row with their own container using a repeatable region:
- Code: Select all
<cms:repeatable name='latestwork_images' label='Latest Work' >
<cms:editable name='latestwork_image'
label='Image (458 x 286 pixel)'
type='image'
width='458'
height='286'
show_preview='1'
preview_width='150'
input_width='200'
col_width='300'
order='11' />
<cms:editable name='latestwork_title' label='Title'
type='text'
order='12' />
<cms:editable name='latestwork_description' label='Description'
height='40'
type='textarea'
order='13' />
</cms:repeatable>
The HTML-markup should look like this:
- Code: Select all
<div class="row">
<div class="container">
<div class="col-xs-12 col-sm-6 col-md-3">
<a href="work.php"><img src="public/assets/img/latest_work1.png" class="img-responsive" alt="Responsive image"></a>
<h4>Title</h4>
<p class="text-muted">Description</p>
</div>
<div class="col-xs-12 col-sm-6 col-md-3">
<a href="work.php"><img src="public/assets/img/latest_work2.png" class="img-responsive" alt="Responsive image"></a>
<h4>Title</h4>
<p class="text-muted">Description</p>
</div>
<div class="col-xs-12 col-sm-6 col-md-3">
<a href="work.php"><img src="public/assets/img/latest_work3.png" class="img-responsive" alt="Responsive image"></a>
<h4>Title</h4>
<p class="text-muted">Description</p>
</div>
<div class="col-xs-12 col-sm-6 col-md-3">
<a href="work.php"><img src="public/assets/img/latest_work4.png" class="img-responsive" alt="Responsive image"></a>
<h4>Title</h4>
<p class="text-muted">Description</p>
</div>
</div>
</div>
<div class="row">
<div class="container">
<div class="col-xs-12 col-sm-6 col-md-3">
<a href="work.php"><img src="public/assets/img/latest_work1.png" class="img-responsive" alt="Responsive image"></a>
<h4>Title</h4>
<p class="text-muted">Description</p>
</div>
<div class="col-xs-12 col-sm-6 col-md-3">
<a href="work.php"><img src="public/assets/img/latest_work2.png" class="img-responsive" alt="Responsive image"></a>
<h4>Title</h4>
<p class="text-muted">Description</p>
</div>
<div class="col-xs-12 col-sm-6 col-md-3">
<a href="work.php"><img src="public/assets/img/latest_work3.png" class="img-responsive" alt="Responsive image"></a>
<h4>Title</h4>
<p class="text-muted">Description</p>
</div>
<div class="col-xs-12 col-sm-6 col-md-3">
<a href="work.php"><img src="public/assets/img/latest_work4.png" class="img-responsive" alt="Responsive image"></a>
<h4>Title</h4>
<p class="text-muted">Description</p>
</div>
</div>
</div>
Would appreciate your guidance how to get this working.