node

toc
<mm:node> A tag to make a node available. Normally it will enclose some field tags, but it is also possible to only write to the context, or to a JSP variable.
attributes
  • number ( `number', `element' or `referid' specify the node. If none of them is given then the node refers to a parent NodeProvider, and simply mirrors it, which can e.g. be useful to assign it a (new) id. The 'parent' node-provider can also be determined by use of the '_node' variable. This last behaviour can be enforced using node="" as attribute (which can be useful e.g. in tag-file fragments). )
    The node number or alias identifying this node in MMBase.
  • notfound
    What to do if the node is not found. The default is to throw an exception.
    skip|skipbodySimply skip the body if the node is not found
    messageJust say in the page that the node was not found
    throw|throwexceptionThrow an exception if the node is not found
    null|providenull Will not throw an exception, but will evaluate the body, simply providing `null' as node. This will probably lead to other (less clear) exceptions. But if you prefer it that way, it is possible. Use on own risk!
    log Like 'skip' but also logs a message.
  • element (Either `number', `element' or `referid' must be supplied.)
    The name of a node field of the current node. This can for instance be the `rnumber' field of a relation, the `destination' field of an oalias, etc. A common use is to specify the name of the node manager to identify a node in a list or related list tag (clusternode providers). In this case, the nodemanager name behaves like a special virtual node field of the surrounding cluster node, indicating the individual nodes that make up the cluster node.
    see: clusternodeprovider
nodeprovider attributes
nodereferrer attributes
cloudreferrer attributes
contextreader attributes
contextwriter attributes
contextreferrer attributes
example 1
Assume that node with number has a field title.
Then the following  can be used to
access the value of title:
<mm:node number="456">
    <mm:field name="title" write="true" />
</mm:node>