Hi Ignacio,
MMBase uses the posrel relation for this purpose. The posrel is a
relation with an integer field.
Instead of connecting author to document by using an insrel (= related),
you connect autors to documents with a posrel. If you use JSP and the
taglib you get something like:
<mm:import externid="author" />
<mm:node number="$author" notfound="skipbody">
<mm:related path="posrel,documents" orderby="posrel.pos"
directions="UP">
<mm:node element="documents">
....
</mm:node>
</mm:related>
</mm:node>
Kind regards, Henk.
T. +31-(0)6-29054903
E. [EMAIL PROTECTED]
I. http://www.mmatch.nl
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Ignacio Renuncio
> Sent: Monday, June 07, 2004 8:08 PM
> To: [EMAIL PROTECTED]
> Subject: Defining the order of related nodes in MMBase
>
>
> Hi everybody,
>
> I have an object cloud that has related nodes and would like
> to know if the
> related nodes to a given one can be displayed in a certain order.
>
> Using my_editors, for example, if I have an object instance of type
> "document" and I link it to an "author", to a couple of
> "subjects" and to
> some "keywords", these related nodes seem to appear in the
> order they have
> been created.
>
> I'd like to know if it's possible to sort them according to
> the node type
> they're instance of, or any other sort.
>
> Has anoybody done this before?
>
> Thanks in advance,
>
> Ignacio.-
>
>
>