# Getting Children of Another Parent

**URL:** <https://www.ruby-forum.com/t/getting-children-of-another-parent/84529>\
**Category:** Radiant CMS\
**Created:** [February 5, 2007, 7:11pm UTC](https://www.ruby-forum.com/t/getting-children-of-another-parent/84529 "2007-02-05T19:11:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Marsh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/50afbb/32.png) [@Kevin\_Marsh](https://www.ruby-forum.com/u/Kevin_Marsh)\
**Post date:** [February 5, 2007, 7:11pm UTC](https://www.ruby-forum.com/t/getting-children-of-another-parent/84529/1 "2007-02-05T19:11:55Z")

</div>

Hey all, quick question that maybe should be more obvious but I cannot  
find.

I need to get the children of a parent other than the current. I have  
a “News” page, with individual articles comprising each story. I want  
to pull the last 3 children of “News” for a sidebar (currently  
implemented in a snippet.)

What am I missing?

Thanks,  
Kevin

---

<div class="post-metadata">

**Author:** ![Kevin\_Marsh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/50afbb/32.png) [@Kevin\_Marsh](https://www.ruby-forum.com/u/Kevin_Marsh)\
**Post date:** [February 5, 2007, 7:13pm UTC](https://www.ruby-forum.com/t/getting-children-of-another-parent/84529/2 "2007-02-05T19:13:55Z")

</div>

Wrap the \<r:children:each\> tag with \<r:find url="/news"\>…\</r:find\> or  
whatever the URL is to your “News” page.

Sean

---

<div class="post-metadata">

**Author:** ![Kevin\_Marsh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/50afbb/32.png) [@Kevin\_Marsh](https://www.ruby-forum.com/u/Kevin_Marsh)\
**Post date:** [February 5, 2007, 7:16pm UTC](https://www.ruby-forum.com/t/getting-children-of-another-parent/84529/3 "2007-02-05T19:16:55Z")

</div>

Thanks Sean, That was quick! I actually stumbled upon the solution too.

The idea (I think) is to “scope” the r:children:each with the r:find  
as a parent.

\<r:find url=“news”\>  
\<r:children:each\>

- Kevin
