This snippet is a result of the solution provided to the MODx user Lokust.
Lokust had a problem with adjusting Ditto’s output and requested to design a thing that would divide the result set into equal groups with a configurable wrapper around the group so that the final output might be formatted with CSS into rows/columns as required.
Lokust not only donated to my work, but also decided to submit the snippet to the public domain as a MODx Add-On.
How to use DittoFormat
# 1) create new snippet 'DittoFormat' and paste into it content of the attached dittoformat.txt file
# 2) call your snippet something as:
[[DittoFormat? &parents=`2` &depth=`1` &display=`all` &sortBy=`menuindex` &sortDir=`ASC` &group=`3` &tplGroup=`group-chunk` &tplItem=`item-chunk`]]
# 3) please read more details on parameters in snippet's header



Comment #1 on: 2010-03-31, 03:13
Comment #2 on: 2010-03-31, 06:51
Comment #3 on: 2010-03-31, 09:59
Comment #4 on: 2010-03-31, 11:48