children:each does this by modifying the tag.locals.page variable:

http://github.com/radiant/radiant/blob/master/app/models/standard_tags.rb#L119-120

(it also adds tag.locals.child)

--
John Long
http://wiseheartdesign.com
http://recursivecreative.com

On Tue, May 18, 2010 at 4:43 AM, alex <[email protected]> wrote:
> Hi all,
>
> I am wondering how to switch page context for self-made radiant tags.
>
> Example:
> <r:children:each>
>  <r:my_tag/>
> </r:children:each>
>
> Accessing self within the tag addresses the page itself instead of its
> children. What do I miss?
>
> Thanks,
> Alex
>

Reply via email to