<!--
    The related tool is to related some object to the node directly
    argument: related_types: list of types, defaults to images, urls, mediafragments
 -->
<div id="mmbase_related mmbase-tool">
 <mm:content
     type="text/html"
     expires="-1"
     xmlns="http://www.w3.org/1999/xhtml"
    xmlns:jsp="http://java.sun.com/JSP/Page" 
    xmlns:mm="http://www.mmbase.org/mmbase-taglib-2.0"
    >
  <mm:import externid="rich_language" from="session">client</mm:import>
  <jsp:directive.page session="true" errorPage="../error.jspx" />
  <mm:locale language="$rich_language">
    <mm:cloud rank="basic user">
      <mm:import id="node" externid="objectnumber" required="true" />
      <mm:node referid="node">
        <mm:import externid="related_types" vartype="list">images,urls</mm:import>
        <mm:stringlist referid="related_types" id="type">
          <mm:hasnodemanager name="$type">
            <div id="related_${type}">
              <mm:include page="related-type.jspx" referids="type" />
            </div>
          </mm:hasnodemanager>
        </mm:stringlist>
      </mm:node>
    </mm:cloud>
  </mm:locale>
</mm:content>
</div>