# Getting children a oage that is not the current page

**URL:** <https://www.ruby-forum.com/t/getting-children-a-oage-that-is-not-the-current-page/135795>\
**Category:** Radiant CMS\
**Created:** [April 25, 2008, 1:07am UTC](https://www.ruby-forum.com/t/getting-children-a-oage-that-is-not-the-current-page/135795 "2008-04-25T01:07:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![squeegy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/dec6dc/32.png) [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Post date:** [April 25, 2008, 1:07am UTC](https://www.ruby-forum.com/t/getting-children-a-oage-that-is-not-the-current-page/135795/1 "2008-04-25T01:07:22Z")

</div>

I have a navigation element in my layout that I want to always show  
links to all children of a certain page that is nested one or 2 levels  
inside my hierarchy.

I guess I need something like:

\<r:page url="/foo/bar"\>  
\<r:chilren:each\>  
\<r:title\>  
\</r:children:each\>  
\</r:page\>

I can’t seem to figure out how to load up a specific page like that to  
operate on like that.

Thanks for helping out this radiant noob.  
-Alex

---

<div class="post-metadata">

**Author:** ![squeegy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/dec6dc/32.png) [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Post date:** [April 25, 2008, 2:09am UTC](https://www.ruby-forum.com/t/getting-children-a-oage-that-is-not-the-current-page/135795/2 "2008-04-25T02:09:06Z")

</div>

You’re on the right track. If you just want a link to the page with its  
title, use \<r:link /\>. I imagine they were just typos, but make sure  
your tags are closed ( /\> for singleton tags) and spelled correctly. As  
the other respondent said, use \<r:find url="/foo/bar"\>…\</r:find\> to  
scope to that page.

Sean

---

<div class="post-metadata">

**Author:** ![squeegy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/dec6dc/32.png) [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Post date:** [April 25, 2008, 1:39am UTC](https://www.ruby-forum.com/t/getting-children-a-oage-that-is-not-the-current-page/135795/3 "2008-04-25T01:39:17Z")

</div>

I believe you want r:find

\<r:find url=“value\_to\_find”\>…\</r:find\>

---

<div class="post-metadata">

**Author:** ![squeegy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/dec6dc/32.png) [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Post date:** [April 25, 2008, 2:22am UTC](https://www.ruby-forum.com/t/getting-children-a-oage-that-is-not-the-current-page/135795/4 "2008-04-25T02:22:43Z")

</div>

Sean C. wrote:

> You’re on the right track. If you just want a link to the page with its  
> title, use \<r:link /\>. I imagine they were just typos, but make sure  
> your tags are closed ( /\> for singleton tags) and spelled correctly. As  
> the other respondent said, use \<r:find url="/foo/bar"\>…\</r:find\> to  
> scope to that page.
> 
> Sean

Thanks guys. I got a little more going on there then I typed up, so  
\<r:link /\> probably won’t do quite enough for me. But its still good to  
know about. Thanks for the tips.
