# Limiting children from r:aggregate

**URL:** <https://www.ruby-forum.com/t/limiting-children-from-r-aggregate/123660>\
**Category:** Radiant CMS\
**Created:** [December 19, 2007, 4:15pm UTC](https://www.ruby-forum.com/t/limiting-children-from-r-aggregate/123660 "2007-12-19T16:15:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimgroom](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7cd45c/32.png) [@jimgroom](https://www.ruby-forum.com/u/jimgroom)\
**Post date:** [December 19, 2007, 4:15pm UTC](https://www.ruby-forum.com/t/limiting-children-from-r-aggregate/123660/1 "2007-12-19T16:15:39Z")

</div>

I’m trying to aggregate several pages and then limit their children.

\<r:aggregate … for 10 urls  
\<r:children limit=“1” …  
\<r:children limit=“3” offset=“1” …

What I want is to display 1 + 3 children. What I’m getting is 1 + 20.

I think that what is happening is that the offset is applying to each  
url, and not being applied to the aggregated results. Is the aggregate  
tag able to do this?

-Jim

---

<div class="post-metadata">

**Author:** ![jimgroom](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7cd45c/32.png) [@jimgroom](https://www.ruby-forum.com/u/jimgroom)\
**Post date:** [December 19, 2007, 10:08pm UTC](https://www.ruby-forum.com/t/limiting-children-from-r-aggregate/123660/2 "2007-12-19T22:08:29Z")

</div>

\<r:aggregate\> is not able to do this currently, but I’d appreciate a  
well-tested patch (hint, hint).

Sean

---

<div class="post-metadata">

**Author:** ![jimgroom](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7cd45c/32.png) [@jimgroom](https://www.ruby-forum.com/u/jimgroom)\
**Post date:** [December 27, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/limiting-children-from-r-aggregate/123660/3 "2007-12-27T16:58:30Z")

</div>

I need this functionality, so I’m going to jump on it, but I’d love a  
helping hand. Can you make any suggestions about how you might  
approach this. I’m still a ruby nuby, and trying to become more  
familiar with Radiant as time goes on…

Also, does anyone have any preference about how this should be  
implemented?

I had thought that this would be the default, so I personally would  
want to see the tag change to operate this way. Are there any current  
users of the r:aggregate tag that would not want this to be the default?

I’m thinking of doing something like separate=“true” for the current  
behavior. Or on the other side, I could do merge=“true” to change to  
what I intend to do.

-Jim
