Getting Children of Another Parent

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

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

Sean

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

  • 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