Ted Vinke <[EMAIL PROTECTED]> wrote:
>    Hi all!
>     
>    I have been searching through the documentation but I couldn't find a way
>    to check whether node 1 has e.g. a posrel-relation with node 2 directly.
>     
>    Does anyone know such a way? <mm:countrelations> only gives me number of
>    relations of a certain type, but I need to know specificly if one node has
>    been related to another specific node. Has to be pretty simple, but I
>    can't see it.



I'd simply do something like:
<mm:relatednodescontainer type="object">
  <mm:constraint field="number" value="$node2" />
  <mm:size>
    <mm:compare value="0">
     No relations!
    </mm:compare>
    <mm:compare value="0" inverse="true">
      <mm:write /> relations!
    </mm:compare>
  </mm:size>
</mm:relatednodescontainer>

 Michiel


-- 
Michiel Meeuwissen
Mediacentrum 140 H'sum 
+31 (0)35 6772979
nl_NL eo_XX en_US
mihxil'
 [] ()

Reply via email to