Platform Explorer / CMF 1.8

Contribution org.nuxeo.ecm.platform.forms.layouts.webapp.widgts--widgets

This contribution is part of XML component org.nuxeo.ecm.platform.forms.layouts.webapp.widgts inside nuxeo-platform-webapp-base-5.4.2-HF05.jar

Extension Point

Extension point widgets of component WebLayoutManager.

Contributed Items

  • <widget name="life_cycle_transitions" type="life_cycle_transitions">
    
          <documentation>
            Default widget listing available life cycle transitions from the
            document's current state and document's life cycle policy.
            <br/>
            The chosen transition is stored in the contextData of the document.
          </documentation>
    
          <labels>
            <label mode="any">label.life.cycle.changeFor</label>
          </labels>
          <fields>
            <field>contextData['request/lifeCycleTransition']</field>
          </fields>
          <widgetModes>
            <mode value="create">hidden</mode>
            <mode value="view">hidden</mode>
          </widgetModes>
          <properties widgetMode="edit">
            <property name="currentLifeCycleState">#{layoutValue.currentLifeCycleState}</property>
            <property name="lifeCycleName">#{layoutValue.lifeCyclePolicy}</property>
          </properties>
        </widget>

    Default widget listing available life cycle transitions from the document's current state and document's life cycle policy. The chosen transition is stored in the contextData of the document.

XML Source

<extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widget name="life_cycle_transitions" type="life_cycle_transitions">

      <documentation>
        Default widget listing available life cycle transitions from the
        document's current state and document's life cycle policy.
        <br/>
        The chosen transition is stored in the contextData of the document.
      </documentation>

      <labels>
        <label mode="any">label.life.cycle.changeFor</label>
      </labels>
      <fields>
        <field>contextData['request/lifeCycleTransition']</field>
      </fields>
      <widgetModes>
        <mode value="create">hidden</mode>
        <mode value="view">hidden</mode>
      </widgetModes>
      <properties widgetMode="edit">
        <property name="currentLifeCycleState">#{layoutValue.currentLifeCycleState}</property>
        <property name="lifeCycleName">#{layoutValue.lifeCyclePolicy}</property>
      </properties>
    </widget>

  </extension>