Getting children a oage that is not the current page

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

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

I believe you want r:find

<r:find url=“value_to_find”>…</r:find>

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs