I have an issue with looping output for a channel with Bootstrap. What I want to archive is this:
row col 8 col 4
row col 4 col 4 col 4
row col 8 col 4
row col 4 col 4 col 4
and so on. This would be for a blog index page listing all the posts. What I'm looking for is a way to output with the 8 and 4 columns in one row. Its an issue of getting the 8 and 4 columns to have separate posts. Could I use 'switch'? I would like to do this without any plugins.
I can loop the col 4 easy without an issue. Simple code below:
<!-- Journal Section -->
<section>
<div>
<!-- /.container -->
<div>
<!-- /.row -->
{exp:channel:entries}
<!-- .col-8 -->
<div class="wrap col-lg-8 col-sm-12 content-item">
<a href="{title_permalink=journal/notes}">
<img src="{journal_lead_image}{image:url:journal-lead-landscape}{/journal_lead_image}" alt=""
title="">
</a>
<div class="content_meta">
<h5><a href="{title_permalink=journal/notes}">{title}</a></h5>
</div>
<p class="item_summary">{journal_summary.</p>
</div>
<!-- /.col-8 -->
<!-- .col-4 -->
<div class="wrap col-lg-4 col-sm-12 content-item">
<a href="{title_permalink=journal/notes}">
<img src="{journal_lead_image}{image:url:journal-lead-portrait}{/journal_lead_image}" alt=""
title="">
</a>
<div class="content_meta">
<h5><a href="{title_permalink=journal/notes}">{title}</a></h5>
</div>
<p class="item_summary">{journal_summary}</p>
</div>
<!-- /.col-4 -->
{/exp:channel:entries}
</div> <!-- /.row -->
</div> <!-- /.container -->
</section>
<!-- Journal Section -->
Any help would be appreciated.