Thank you Michiel for the explanation. The fog is clearing up :-)

One more thing. How does mmbase knows that a certain text should be rendered
as an hyperlink and how do I go about describing that a certain text in my
paragraph should be rendered as a hyperlink. For instance, in the following
paragraph, taken from the MMBase documentation, I would like the work
"connected" to be a hyperlink to a webpage.  What is the appropriate syntax
for doing this? How does mmbase figure this out?

MMBase is an  object oriented content management system. i..e text, images,
and other content are stored in objects, objects are <a
id="24">connected</a> by relations, relations are objects themselves.

I have looked at the richtext example and their is no associated class that
does any transformation.

Curtney


----- Original Message ----- 
From: "Michiel Meeuwissen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 03, 2004 1:05 AM
Subject: Re: Why use idrel or idrelation builder??????


> Curtney Jacobs <[EMAIL PROTECTED]> wrote:
> > The RichText example and WIAB application have an idrel (or idrelation)
> > relation builder. Just for clarification, under what circumstances would
you
> > want to use an idrelation object as opposed to a regular relation
(insrel)
> > object?
> >
> >
> > I would like to associate urls and images directly into my paragraphs
(in
> > any location) and I am thinking that an idrelation (or idrel) that the
> > RichText and WIAB uses might be the first step to solving my problems.
> >
>
> Yes, the 'idrel' of RichtText and WIAB is the esence of the solution. The
> idea is that a relation does not merely point to a node, but to a certain
> XML-tag inside a field of a node. So, the 'id' of the relation corresponds
> to the 'id' of the tag.
>
> That is excactly what the 'richtext' example is doing (where for example
> 'urls' are linked to certain words in the text, marking them with an
> 'anchor').
>
> The trouble remains how to user-friendly apply those id's.
>
> Btw, when connecting to 'rich' objects, you might need a relation with two
> id fields (a 'source' and a 'destination' id).
>
> Michiel
>
>
> -- 
> Michiel Meeuwissen
> Mediacentrum 140 H'sum
> +31 (0)35 6772979
> nl_NL eo_XX en_US
> mihxil'
>  [] ()
>


Reply via email to