Up to now, I have used layout templates that consist of a container with one row of columns. But now I want to create layout templates that contain different arrangements of columns. What does the output in the template look like for this?
Hi,
in my experience the template code does not change even if you have multiple “rows” in a layout. The loop that creates the columns creates the 2nd “row” with no problem.
<?php foreach ($page->yourlayoutfieldname()->toLayouts() as $layout): ?>
<?php foreach ($layout->columns() as $column): ?>
<div class="yourlcolumnclass">
</div>
<?php endforeach ?>
<?php endforeach ?>

