I need display entries of a channel, is easy when you have the same structure of your DOM elements like:
{exp:channel:entries
channel="{channel}"
limit="6"
}
<div class="{switch='row1|row2'}">
<div class="john guitar">
JOHN
</div>
<div class="jagger drums">
JAGGER
</div>
</div>
{/exp:channel:entries}
so that is simple with https://ellislab.com/expressionengine/user-guide/add-ons/channel/channel_entries.html#switch, render the same structure 6 times jump between row1 and row2 BUT!!! my structure have 6 different block of code AND!!! in each block add new clases AND!! some pieces of code are in the top and later at the bottom, like this:
<div class="row1">
<div class="john guitar">
JOHN
</div>
<div class="jagger drums">
JAGGER
</div>
</div>
<div class="row2">
<div class="jagger voice">
JAGGER
</div>
<div class="john bass">
JOHN
</div>
</div>
etc...
you see, John is in the top, but in the second block is in the bottom and also add a new class to the div, later Jagger is in the bottom but in the second is in the top... and so on...
please see the the real code!!! html that I need looping through, is very clear what I need: http://cl.ly/code/3t3O0P3k3j0H (6 different blocks with new classes in)
I dont get it how can looping if the positions are different.
any help? thank you!!