I have an array which contains a list of names. In the front end, this has to be listed in a listed way. Using the <ul> and <li>
tags.
Half of the list should be displayed under one <ul>
tag and the other half under another <ul>
tag.
like this:
<ul>
<li>One</li>
<li>Two</li>
<li>Three</li>
</ul>
<ul>
<li>Four</li>
<li>Five</li>
<li>Six</li>
</ul>
Now the problem is in FLUID I did not find a way to end the <ul>
tags when the array loops half of the elements.
I want to do something like this
<f:for each="{my_array}" as="item">
<li>{item}</li>
<!-- if condition where count=(my_array%2) then use </ul><ul>-->
</f:for>