Hi I work with the foundation framework.
I try to create a Entry structure with 3 columns but I want it to by dynamic. So if there is only 1 or two columns the parent div should still receive a closing tag.
My brain already melted a little.
So I have a Row with three columns. Each column is a EE entry.
Sometimes there are only one columns and sometimes there are two columns.
Now I’d like EE to determine the amount of columns and append the closing Row tag intelligently.
If I have always three columns. Its easy:
{exp:channel:entries channel="teammitglied" disable="member_data|pagination" category="3"}
{switch="<div class='row team'>||"}
<div class="four columns">
{title}
{text_teammitglied}
</div>
{switch="||</div>"}
{/exp:channel:entries}EE ads the closing row tag after the third columns div.
But if there are e.g. five entries the second row isn’t being closed because the div in the switch tag doesn’t kick in.
Is it possible to ad a variable like this: “If there is only one columns ad the ending div after the first time. If there are two columns ad the ending div after the second time”
That would be awesome.