Platform Explorer / Nuxeo Platform 5.8

Component org.nuxeo.ecm.platform.localconfiguration.ui.types

Contributions

XML Source

<component name="org.nuxeo.ecm.platform.localconfiguration.ui.types">

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="actions">

    <action id="UI_TYPES_CONFIGURATION"
      link="/incl/tabs/ui_types_configuration.xhtml" order="100"
      label="action.view.types.configuration" icon="/icons/file.gif">
      <category>LOCAL_CONFIGURATION</category>
      <filter-id>manage</filter-id>
    </action>

  </extension>

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

    <widgetType name="ui_types_selection">
      <configuration>
        <categories>
          <category>configuration_not_ready</category>
        </categories>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">/widgets/ui_types_selection_widget_template.xhtml
      </property>
    </widgetType>

    <widgetType name="default_type">
      <configuration>
        <categories>
          <category>configuration_not_ready</category>
        </categories>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">/widgets/ui_default_type_widget_template.xhtml
      </property>
    </widgetType>

  </extension>

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

    <widget name="ui_types_selection" type="ui_types_selection">
      <labels>
        <label mode="any">label.local.configuration.ui.types.allowedTypesSelection</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>uitypesconf:allowedTypes</field>
      </fields>
    </widget>

    <widget name="deny_all_types" type="checkbox">
      <labels>
        <label mode="any">label.local.configuration.ui.types.denyAllTypes</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>uitypesconf:denyAllTypes</field>
      </fields>
    </widget>

    <widget name="default_type" type="default_type">
      <labels>
        <label mode="any">label.local.configuration.ui.automaticType</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>uitypesconf:defaultType</field>
      </fields>
    </widget>


  </extension>

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

    <layout name="ui_types_configuration">
      <templates>
        <template mode="any">
          /layouts/layout_local_configuration_template.xhtml
        </template>
      </templates>
      <properties mode="any">
        <property name="layoutTemplateToInclude">/layouts/layout_default_template.xhtml</property>
        <property name="foldableBoxLabel">label.local.configuration.uiTypes</property>
        <property name="localConfigurationFacet">UITypesLocalConfiguration</property>
        <property name="helpLabel">label.local.configuration.uiTypes.info</property>
        <property name="elementsToReRender">local_configuration_panel</property>
      </properties>
      <rows>
        <row>
          <widget>ui_types_selection</widget>
        </row>
        <row>
          <widget>deny_all_types</widget>
        </row>
        <row>
          <widget>default_type</widget>
        </row>
      </rows>
    </layout>

  </extension>

</component>