group_children

Missing

Sometimes you want to iterate over a list of children, and insert something after every n-th child. Or, for css reasons you want to group children per 3. Until now we have sometimes used javascript to alter markup, which is very ucky..

Here is the solution;

<r:children:grouped size="3">
  <div>
    <r:children:each> ... </r:children:each>
  </div>
</r:children:grouped>
Author Benny Degezelle
Website http://github.com/jomz/radiant-group_children-extension
Repository git://github.com/jomz/radiant-group_children-extension.git
Download https://github.com/jomz/radiant-group_children-extension/tarball/master
Supports Radiant 1.0.0.rc2
Record Created July 3, 2011 (almost 6 years ago)

Installation

At the command prompt, in the root of your Radiant project, type:

script/extension install group_children