Render snippet in relation to child page

Hi all,
I recently created my first custom Page Type, with custom radius tags.
Of course this is all thanks to those who have done the hard work and
made some great documentation. It was becuase of these new radius tag’s
that I noticed whenever a snippet is rendered it is always in relation
to the current page, that is even in this case:
<r:children:each><r:child><r:snippet name=“my-snippet”
/></r:child></r:children:each>
The snippet will not be rendered in terms of the child page.
Cases where someone might want to do this, is to make their site as DRY
as possible.
I located that line that would be making it work in this manner. Line
530:

But not knowing if this is by design, or exactly what a change here
would mean, I thought I would ask for you thoughts. Any input would be
appreciated.

Cheers,
Carl.

I noticed whenever a snippet is rendered it is always in relation
to the current page, that is even in this case:
<r:children:each><r:child><r:snippet name=“my-snippet”
/></r:child></r:children:each>

I think the error is with your Radius tags. Try instead:

<r:children:each><r:snippet name="my-snippet"/></r:children:each>

This should render “my-snippet” from the context of each child page.
Take a
look at this article for more info:

http://wiki.radiantcms.org/Tags_that_change_the_scope

Hope this helps,

Drew

Also keep in mind that the tags available to be rendered are only the
tags defined on the current “global” page – the page that’s directly
being rendered. If you are rendering the parent page, the child page’s
custom tags will not be available to the parent.

Sean

Sean C. wrote:

Also keep in mind that the tags available to be rendered are only the
tags defined on the current “global” page – the page that’s directly
being rendered. If you are rendering the parent page, the child page’s
custom tags will not be available to the parent.

Sean

Thank you very much for your help here. I guess I will need to make the
radius tags I am wanting to use available from somewhere else, and not
just on this page type.

Carl