I need to wrap a custom number of blocks on a page to apply a grid system to them.
I know about setBlockWrapperStart() and setBlockWrapperEnd(), but these are applied after each block that is generated.
Let's say I have 12 Blocks of a given type and I want to wrap the first one at the beginning with <div class="row"> and after the 4th one I want to append </div>. And with next (5th block) I want to start with <div class="row"> again...
Is there any way to implement that with concrete 5? I use the standard output right now and couldn't figure out how to add a loop or something to it to implement my approach:
$b = new Area('Test Block');
$b->display($c);
I'm using concrete 5.6.3.4. Thank you!