Forum: Radiant CMS Change context in Radius

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
3bec49196b296ac7c201412642c7a2b1?d=identicon&s=25 Rodrigo Alvarez (papipo)
on 2009-11-08 03:15

I'm writing an application and I define tags on the fly, depending on
the model attributes and associations. If I have BlogPost that has_many
comments, I define tags for the BlogPost title, body, tags... and a
"comments" tags as well, in order to access the collection.

the thing is: is there a way to create a new context for the comments
If the comments has an email field, I can't access it with a simple tag
like <r:email /> I must use the verbose <r:attribute name="email" />,
which I don't like at all.

Hopefully I've explained things enough :P

3bec49196b296ac7c201412642c7a2b1?d=identicon&s=25 Rodrigo Alvarez (papipo)
on 2009-11-08 12:10
By the way, another option would be to have tag_missing behave actually
like method_missing.

That means having access to the tag binding instead of just the tag
name. That way I could access tag.locals and call methods on the
association records.
This topic is locked and can not be replied to.