relatednodescontainer

toc
<mm:relatednodescontainer> Surrounds a relatednodes tag and provides a query object. Alternatively, it can also surround a listnodes tag (because a relatenodescontainer is a specialized version of a listnodescontainer). (since: MMBase-1.7)
see alsolistnodes | querycontainerreferrer
attributes
querycontainer attributes
container attributes
contextreader attributes
contextwriter attributes
contextreferrer attributes
nodereferrer attributes
example 1
<mm:listnodes type="mags" max="1">
  <mm:relatednodescontainer type="news">
    <mm:sortorder field="number" direction="down" /> <!-- newest first -->
    <mm:relatednodes>
      <mm:nodeinfo type="gui" /><br />
    </mm:relatednodes>
  </mm:relatednodescontainer>
</mm:listnodes>
org.mmbase.bridge.NotFoundException: Node manager with name 'mags' does not exist.
example 2
<mm:listnodes type="mags" max="1">
  <mm:relatednodescontainer path="posrel,news" element="news">
    <!-- element attribute could be omitted, because defaults to last of path-->
    <mm:sortorder field="posrel.pos" />
    <mm:relatednodes>
      <mm:nodeinfo type="gui" /><br />
    </mm:relatednodes>
  </mm:relatednodescontainer>
</mm:listnodes>
org.mmbase.bridge.NotFoundException: Node manager with name 'mags' does not exist.