On Sun, 13 Feb 2005 21:22:48 +0300, Nikolay Bukharev <[EMAIL PROTECTED]> wrote:
> Hi Andr�,
> 
> >>Is where are in MMBase any tools for examine types of relation?
> >>something like this "whatkindofrelation"...
> 
> AvT> To me it's almost completely unclear what you mean with this question.
> 
> something like this:
> 
> <mm:list nodes="" path="a,anyrel,c" >
>     <mm:compare anyrel="myreltype1">do this</mm:compare>
> 
>     <mm:compare anyrel="myreltype2">do that</mm:compare>
> </mm:list>
hello , I am not 100% shure but i think you can use the nodeinfo tag for that
<mm:list path="a,anyrel,c" >
  <mm:node element="anyrel">
    <mm:nodeinfo type="type">
      <mm:compare value="posrel">do this</mm:compare>
    </mm:nodeinfo>
  </mm:node>
</mm:list>

I never had to do this IRL. Usualy the relations has a certain meaning
and you want to list them seprately. a better aproach Is to create a
relation with an extra field
(role?). This better since you can then sort on type or only select
relations with a certain type.

hope this helps
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to