Platform Explorer / CMF 1.8

Component org.nuxeo.ecm.platform.routing.layouts.webapp

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.routing.layouts.webapp">
  <require>org.nuxeo.ecm.platform.forms.layouts.webapp.summary</require>
  <require>org.nuxeo.ecm.platform.forms.layouts.webapp.base</require>
  <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
    point="widgettypes">

    <widgetType name="summary_current_route_action">
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /widgets/summary/summary_current_route_action.xhtml
      </property>
    </widgetType>
    <widgetType name="summary_document_route_action">
     <configuration>
        <sinceVersion>1.8</sinceVersion>
        <title>Related route summary</title>
        <description>
          This widgets allows to view/start a route related to the current Case.
        </description>
        <categories>
          <category>summary</category>
          <category>cmf</category>
        </categories>
        <supportedModes>
          <mode>view</mode>
          <mode>edit</mode>
        </supportedModes>
        <!-- no configurable properties -->
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /widgets/summary/summary_document_route_action.xhtml
      </property>
    </widgetType>
  </extension>

  <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
    point="widgets">
    <widget name="summary_current_route_action"
      type="summary_current_route_action" />
    <widget name="summary_document_route_action"
      type="summary_document_route_action" />

    <widget name="participatingDocuments" type="template">
      <labels>
        <label mode="any">label.document.routing.participatingDocuments</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>docri:participatingDocuments</field>
      </fields>
      <properties mode="any">
        <property name="template">
          /document_routing_widgets/document_suggestion_widget_template.xhtml
        </property>
      </properties>
      <properties widgetMode="edit">
        <property name="cssStyleClass">dataInputText</property>
      </properties>
    </widget>

    <widget name="execution_type" type="selectOneDirectory">
      <fields>
        <field>stepf:execution</field>
      </fields>
      <labels>
        <label mode="any">label.step.folder.execution.type</label>
      </labels>
      <translated>true</translated>
      <properties widgetMode="any">
        <property name="directoryName">execution_type</property>
        <property name="localize">true</property>
      </properties>
    </widget>

    <widget name="document_related_route" type="template">
      <labels>
        <label mode="any">label.document.routing.related.route</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>relatedRouteModelDocumentId</field>
      </fields>
      <properties mode="any">
        <property name="template">
          /document_routing_widgets/documentroute_related_route_suggestion_widget_template.xhtml
        </property>
      </properties>
      <properties widgetMode="edit">
        <property name="cssStyleClass">dataInputText</property>
      </properties>
    </widget>
  </extension>

  <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
    point="layouts">
    <layout name="document_related_route">
      <templates>
        <template mode="any">/layouts/layout_summary_template.xhtml</template>
      </templates>
      <rows>
        <row>
          <widget>document_related_route</widget>
        </row>
      </rows>
    </layout>
    <layout name="document_routing_instance">
      <templates>
        <template mode="any">/layouts/layout_summary_template.xhtml</template>
      </templates>
      <rows>
        <row>
          <widget>participatingDocuments</widget>
        </row>
      </rows>
    </layout>

    <layout name="step_folder">
      <templates>
        <template mode="any">/layouts/layout_default_template.xhtml</template>
      </templates>
      <rows>
        <row>
          <widget>execution_type</widget>
        </row>
      </rows>
    </layout>

    <layout name="summary_document_route_layout">
      <templates>
        <template mode="any">/layouts/layout_summary_template.xhtml</template>
      </templates>
      <rows>
        <row>
          <widget>summary_current_document_description</widget>
          <widget>summary_current_document_view</widget>
          <widget>summary_current_document_dublincore</widget>
        </row>
        <row>
          <widget>summary_current_document_lc_and_version</widget>
          <widget>summary_current_document_actions</widget>
          <widget>summary_current_route_action</widget>
        </row>
      </rows>
    </layout>

  </extension>

</component>