The code should work with <r:aggregate:each paths="..."> But obviously something is wrong.
There are (or should be) 2 ways to use the aggregate tag. - to collect a group of pages to iterate - to collect a group of pages to iterate their children So both of these bits *should* work <r:aggregate paths="..."> <r:each>... each of the aggregated pages </r:each> <r:children:each> ... each of the children of aggregated pages </r:children:each> </r:aggregate> -Jim On Tue, Jan 15, 2013 at 8:18 AM, Mohit Sindhwani <[email protected]> wrote: > Thanks, John... > > On 15/1/2013 5:12 AM, john wrote: > > <r:aggregate paths='/about; /articles'> > <r:children:each> > <r:title/> > </r:children:each> > </r:aggregate> > > and > > <r:aggregate paths="/about; /articles"> > <r:children:count/> > </r:aggregate> > > > The above works fine! You found the problem! > > In my case, the problem was that Line 2 (not Line 1): > > 1> <r:aggregate paths="/stage/utk/common;/stage/utk"> > 2> <r:aggregate:children:count /> > 3> </r:aggregate> > > Line 2 should just be r:children:count, as you pointed out! > > Best Regards, > Mohit. > > -- Write intention revealing code #=> http://www.clean-ruby.com Jim Gay Saturn Flyer LLC 571-403-0338
