I don't understand well what you mean.  I believe that you want
something like:

    <event>
         <date date="..." />
         <title> .... </title>
         <body>
               .....
         </body>
     </event>

     And be able to "parse" the sub-tags an do something useful with that.

     I don't believe that it's easy to do your own parsing with Radius,
maybe it's not even possible.  But that does not matter.  IMHO, the way to
handle this is to expand the <event> tag, which will expand the sub-tags.
In the sub-tags you bind data to the <event> tag, so when the expanding ends
at the <event> tag it has all the information and can render whatever HTML
you want and return it.

     The point here is to realize that expanding a tag does not mean that
you have to return the HTML you get back, you can return whatever you want.
In the case explained above, the sub-tags will not even return any HTML,
just add data to the parent tag.

    I found this doc nice for understanding the Radius tags from a developer
point of view:

    http://radius.rubyforge.org/files/QUICKSTART.html

     /AITOR

On 8/22/07, Steve Erickson <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> First of all, let me say that I'm liking the extension system.  It seems
> to work pretty well for adding little bits of functionality.  One of the
> extensions that I've been working on is an events calendar.  My event
> table has a "body" field where the user can type a long description
> about the event.  I would like for them to be able to use some radius
> tags within that field.  In other words, within my definition of the
> "event:body" tag I would like to be able to parse the text for any
> radius tags and have them rendered appropriately.  Is there an easy way
> to get at Radiant's radius context and parser from within a tag
> definition?  Or do I need to instantiate my own radius context and
> parser?  If I have to instantiate my own, is there an easy way for me to
> use tags that have already defined in radiant?  Sorry if all of this is
> confusing.  Just curious if anybody else has run into something similar.
>
> Steve
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Radiant mailing list
> Post:   [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to