I've got a Matrix field with say 20 rows (could be 21).
I want to output those rows within but i want 2 rows in each .
Any idea how to accomplish this with the switch tag in Matrix? I'm trying some weird and wacky stuff but nothing is working as i want.
So markup i would want is:
<div>
{row 1 content}
{row 2 content}
</div>
<div>
{row 3 content}
{row 4 content}
</div>
<div>
{row 5 content}
{row 6 content}
</div>
<div>
{row 7 content}
</div>
And here is my current template code:
{exp:channel:entries channel="downloads" dynamic="no" disable="pagination|member_data|categories|category_fields" orderby="random"}
<div>
{dl-downloads}
<h4>{dl-download-title}</h4>
<p>{dl-download-desc}</p>
{switch="|</div><div>"}
{/dl-downloads}
</div>
{/exp:channel:entries}