Page

A page of the nodes application consists of a menu bar, a toolbar and some content.

Both menu bar and toolbar can be described as a set of controls.

Schema

nodes:control inherits from nodes:control.

A node may have additional properties

  • nodes:action. This represents a menu action. It is a reference to the control, that implements the action. That way, the same control can be reused in multiple pages, as is the case for many controls. The property can have multiple values, i.e. there may be multiple menu actions.
  • nodes:toolbarAction. This represents a toolbar action and is similar to the menu action, i.e. it is a reference to a control and it may have multiple values.

custom_nodestypes.xml:

<nodeType
   hasOrderableChildNodes="false"
   isMixin="false"
   name="nodes:page"
   primaryItemName="">
  <supertypes>
   <supertype>nodes:control</supertype>
  </supertypes>
  <propertyDefinition
    autoCreated="false"
    mandatory="false"
    multiple="true"
    name="nodes:toolbarAction"
    onParentVersion="VERSION"
    protected="false"
    requiredType="Reference">
   <valueConstraints>
    <valueConstraint>nodes:control</valueConstraint>
   </valueConstraints>
  </propertyDefinition>
  <propertyDefinition
    autoCreated="false"
    mandatory="false"
    multiple="true"
    name="nodes:action"
    onParentVersion="VERSION"
    protected="false"
    requiredType="Reference">
   <valueConstraints>
    <valueConstraint>nodes:control</valueConstraint>
   </valueConstraints>
  </propertyDefinition>
 </nodeType>

Template

The template looks like