My scenario is that I have a page where I would like to control its children in groups of, say, 6, until it runs out of children (the last group would have the remainder).
So for example, if i have 14 children of my page i'd like to be able to product something that looks like this:
This would be supposing that each child had an attached image that happened to have a filename numbered according to its position, but that's unimportant because I'd just get attributes of each child using controls like $Link, $Title, etc. The important part is that the children are grouped by sixes.
The example HTML output above might be produced by something like:
<% control ChildrenBySixes %>
<% end_control %>
I've been thinking about this for some time and I Just can't seem to figure out anything that would actually work. I would assume that everything would need to be handled by the controller, but as far as I'm aware the controller doesn't let you spit out any HTML, which needs to appear periodically (the "</div><div id="group$nextGroupNum>" or similar, and of course you can't iterate in a template, which I need to do in order to cover all the children.
My second problem is that I can't quite seem to figure out how to construct a request for a DataObject of the children of the parent page, which I assume would probably be part of the solution.
Thanks for any help you might be able to offer!