Making an entry grid with Batch 2,3 (2 in row then 3 in row) I'm trying to make a News item grid. I'm looking for a solution to output 2 type of "rows". One that shows 2 entries and the other shows 3 entries.
I tried playing around with batches already but can't really manage to get it working alright. Is batch the right filter to use? If not what should I try using?

It should look like this:



Twigless code looks like this:

&lt;!-- Begin row type 1 --&gt;
    &lt;div class="row rowDivider"&gt;
        &lt;div class="col-md-4"&gt;
            &lt;div class="caseGrid-item"&gt;

            &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="col-md-8"&gt;
            &lt;div class="caseGrid-item big-item"&gt;

            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;!-- End row type 1 --&gt;
    &lt;!-- Begin row type 2 --&gt;
    &lt;div class="row rowDivider"&gt;
        &lt;div class="col-md-4"&gt;
            &lt;div class="caseGrid-item"&gt;

            &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="col-md-4"&gt;
            &lt;div class="caseGrid-item"&gt;

            &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="col-md-4"&gt;
            &lt;div class="caseGrid-item"&gt;

            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;!-- End row type 2 --&gt;
    &lt;!-- Begin row type 1 --&gt;
    &lt;div class="row rowDivider"&gt;
        &lt;div class="col-md-8"&gt;
            &lt;div class="caseGrid-item big-item"&gt;

            &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="col-md-4"&gt;
            &lt;div class="caseGrid-item"&gt;

            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;!-- End row type 1 --&gt;
With some help from HendrikEng's answer I figured out something that does work.

I had to make the batch bigger to an amount of 5 making the "row's" bigger. Also I had to set the position of the bigger block which always is the first or second of this batch so I could set this witha variable which changes if a new batch started.

This is the finalcode which works perfect:

{% for entry in craft.entries.section('cases')|batch(5) %}
    &lt;!-- Set position for the bigger block --&gt;
    {% set bigBatchNr = 2 %}
    &lt;!-- Change position for the bigger block if the batch loop is even --&gt;
    {% if loop.index is even %}
        {% set bigBatchNr = 1 %}
    {% endif %}

    &lt;div class="row rowDivider"&gt;
        {% for batch in entry %}
            {% if loop.index == bigBatchNr %}
                &lt;div class="col-md-8"&gt;
                    &lt;div class="caseGrid-item big-item"&gt;

                    &lt;/div&gt;
                &lt;/div&gt;
            {% else %}
                &lt;div class="col-md-4"&gt;
                    &lt;div class="caseGrid-item"&gt;

                    &lt;/div&gt;
                &lt;/div&gt;
            {% endif %}
        {% endfor %}            
    &lt;/div&gt;
{% endfor %}