Render_tag

Quick question: Inside a tag definition block in my behavior, can I call
render_tag that is available to the Radius context? If so, what’s the
proper syntax? I’d like to have a case where a tag can be used as a
singleton or expanded, and I’d like not to repeat the contents of
sub-tags
inside their parent.

TIA

Sean C.
seancribbs.com

Sean C. wrote:

Quick question: Inside a tag definition block in my behavior, can I call
render_tag that is available to the Radius context? If so, what’s the
proper syntax? I’d like to have a case where a tag can be used as a
singleton or expanded, and I’d like not to repeat the contents of sub-tags
inside their parent.

The <r:link /> tag does that:

http://dev.radiantcms.org/radiant/browser/trunk/radiant/app/models/page_context.rb#L318

The method is TagBinding#render.


John L.
http://wiseheartdesign.com

John W. Long wrote:

http://lists.radiantcms.org/mailman/listinfo/radiant

Awesome, thanks!

Sean C.
seancribbs.com

Ok… helps if I read the documentation more carefully - the answer is
yes.
Thanks anyway!

Sean C.
seancribbs.com

One more question about that, John. Does the tag.render call take into
account the current nesting, or do I need to fully specify the tag?
Thanks
again.

Sean C.
seancribbs.com