[Radiant] Dynamic Attributes in a Snippet Tag?

Sean Cribbs seancribbs at gmail.com
Fri Oct 27 08:25:24 CDT 2006


You could do something similar, but it wouldn't work that way because you
would have to define the tag when you were already parsing!  Instead you
would have to make modifications to the "snippet" tag definition to record
attributes it doesn't use in a tag.locals, and then add a new tag, say
"echo" that outputs individual dynamic attributes.  <r:echo attr="linktext"
/>, for example.  Still, I don't see what that accomplishes.

Sean Cribbs
seancribbs.com

On 10/26/06, Loren Johnson <loren at fn-group.com> wrote:
>
>
> Has anyone ever thought about adding an attribute to a Snippet call
>
>   e.g. <r:snippet linktext="Read more of this column" />
>
> and then having a way of pulling that attribute in the Snippet all using
> Radius tags?:
>
>   e.g. Snippet content <r:linktext /> more Snippet content....
>
> This is one of those things which could lead to all "misuse" of Radiant
> I suppose, but it would sure be an easy implemenation that would enable
> a number of useful and potentially in-scope applications.
>
> I have a particular use-case if there is any interest.
>
> Thanks,
>
> Loren Johnson
> AIM: NL7XF
> loren at fn-group.com
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Radiant mailing list
> Post:   Radiant at lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.radiantcms.org/pipermail/radiant/attachments/20061027/3c649978/attachment.html


More information about the Radiant mailing list