Hello community,
I need your thoughts here, please:
Items are read in from a plain text tiddler, line by line.
item1
item2
item3
item4
...
item14
item15
Each item is used as a label for a checkbox-widget and I’d like to force a new table row after 5 items.
Here is a simplified code without the checkbox-widgets. Unfortunately, the </tr>
-tag is interpreted as plain text instead of a HTML tag.
<table><tr>
<$list filter="[{data:Customers}splitregexp[\n]]" counter="count">
<% if [<count>remainder[5]match[0]] %>
<td><<currentTiddler>></td></tr>
<% else %>
<td><<currentTiddler>></td>
<% endif %>
</$list>
</tr></table>
Output:
I’m sure that there is a simple solution for this, but I don’t see the wood for the trees