I need to close a div after the 3rd div and open a new div inside a repeatable region
The non code is below
The couchcms tags integrated into the coding is below
I need the div closed after the closing div for <div class="col-md-6"> and then reopen that div again
I have attached a screenshot of the layout it needs to look like
I can't seem to work out where to put the zebra tags to close the div and open it again
UPDATE: I have had another go and bit closer as the coding with the extra tags is below but still stuck and can't work out it out
The non couchcms coding of the above looks like below
The non code is below
- Code: Select all
<div class="col-md-6">
<div class="about-us-post">
<div class="skew-box">
<a href="#"><i class="fa fa-building-o"></i></a>
</div>
<h4>Health & Safety Consultancy</h4>
<span>A competent consultant can provide innovative solutions in respect of the construction health and safety challenges that all organisations experience.</span>
</div>
<div class="about-us-post">
<div class="skew-box">
<a href="#"><i class="fa fa-cogs"></i></a>
</div>
<h4>Inspections</h4>
<span>Our health and safety inspections comprise of a 1-2 hour visit by a NEBOSH qualified health and safety adviser.</span>
</div>
<div class="about-us-post">
<div class="skew-box">
<a href="#"><i class="fa fa-desktop"></i></a>
</div>
<h4>Policies</h4>
<span>If you employ 5 or more workers then all construction businesses must have a written Health and Safety Policy.</span>
</div>
</div>
<div class="col-md-6">
<div class="about-us-post">
<div class="skew-box">
<a href="#"><i class="fa fa-desktop"></i></a>
</div>
<h4>PAT Testing</h4>
<span>PAT Testing is a simple procedure where all portable appliances contained within the premises are routinely checked to ensure they are safe.</span>
</div>
<div class="about-us-post">
<div class="skew-box">
<a href="#"><i class="fa fa-tachometer"></i></a>
</div>
<h4>Fire Risk Assessment</h4>
<span>We are experienced in fire risk assessments and know how to complete this to the health and safety standards.</span>
</div>
</div>
The couchcms tags integrated into the coding is below
- Code: Select all
<div class="col-md-6">
<cms:show_repeatable 'about_boxes'>
<div class="about-us-post">
<div class="skew-box">
<a href="#"><i class="fa fa-building-o"></i></a>
</div>
<h4><cms:show small_heading/></h4>
<span><cms:show small_text/></span>
</div>
</cms:show_repeatable>
</div>
I need the div closed after the closing div for <div class="col-md-6"> and then reopen that div again
I have attached a screenshot of the layout it needs to look like
I can't seem to work out where to put the zebra tags to close the div and open it again
UPDATE: I have had another go and bit closer as the coding with the extra tags is below but still stuck and can't work out it out
- Code: Select all
<cms:show_repeatable 'about_boxes'>
<cms:set my_counter="<cms:zebra '1' '2' '3' />" scope='global' />
<cms:if my_counter='1' >
<div class="col-md-6">
<div class="about-us-post">
</cms:if>
<div class="skew-box">
<a href="#"><i class="fa fa-building-o"></i></a>
</div>
<h4><cms:show small_heading/></h4>
<span><cms:show small_text/></span>
</div>
<cms:if my_counter='4' >
</div>
</cms:if>
</cms:show_repeatable>
The non couchcms coding of the above looks like below
- Code: Select all
<div class="col-md-6">
<div class="about-us-post">
<div class="skew-box">
<a href="#"><i class="fa fa-building-o"></i></a>
</div>
<h4>Health & Safety Consultancy</h4>
<span>A competent consultant can provide innovative solutions in respect of the construction health and safety challenges that all organisations experience.</span>
</div>
<div class="skew-box">
<a href="#"><i class="fa fa-building-o"></i></a>
</div>
<h4>Inspections</h4>
<span>Our health and safety inspections comprise of a 1-2 hour visit by a NEBOSH qualified health and safety adviser.</span>
</div>
<div class="skew-box">
<a href="#"><i class="fa fa-building-o"></i></a>
</div>
<h4>Policies</h4>
<span>If you employ 5 or more workers then all construction businesses must have a written Health and Safety Policy.</span>
</div>
<div class="col-md-6">
<div class="about-us-post">
<div class="skew-box">
<a href="#"><i class="fa fa-building-o"></i></a>
</div>
<h4>PAT Testing</h4>
<span>PAT Testing is a simple procedure where all portable appliances contained within the premises are routinely checked to ensure they are safe.</span>
</div>
<div class="skew-box">
<a href="#"><i class="fa fa-building-o"></i></a>
</div>
<h4>Fire Risk Assessment</h4>
<span>We are experienced in fire risk assessments and know how to complete this to the health and safety standards.</span>
</div>