David, When Daniel cleaned up cruft in the Page model, he made snippets render on the global page, i.e. tag.globals.page. In r601, I changed r:content to be rendered by the global page too. What this does is maintains tag.globals.page as the currently rendering page. It's a pretty ingenious and subtle change -- we don't create a new context and parser, so all rendering context is retained.
Sorry, this is a roundabout way of saying, use tag.globals.page instead of tag.globals.actual_page. Cheers, Sean On Nov 15, 2007 12:48 PM, David Piehler <[EMAIL PROTECTED]> wrote: > Using Radiant 0.6.4 gem. The following is false because > tag.globals.actual_page is being returned NULL... > > tag "if_page_is_self" do |tag| > tag.expand if tag.locals.page == tag.globals.actual_page > end > > I'm using my tag like... > > <r:find url="about"> > <a href="<r:url />"<r:if_page_is_self> > class="selected"</r:if_page_is_self>><r:breadcrumb /></a> > </r:find> > > Any ideas on why tag.globals.actual_page is returning NULL? > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Radiant mailing list > Post: Radiant@lists.radiantcms.org > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > _______________________________________________ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant