Platform Explorer / Nuxeo Platform 5.6

Contribution org.nuxeo.ecm.platform.localconfiguration.theme--layouts

This contribution is part of XML component org.nuxeo.ecm.platform.localconfiguration.theme inside nuxeo-platform-localconfiguration-web-5.6.jar

Extension point

Extension point layouts of component WebLayoutManager.

Contributed items

  • <layout name="theme_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.theme
            </property>
            <property name="localConfigurationFacet">
              ThemeLocalConfiguration
            </property>
            <property name="helpLabel">
              label.local.configuration.theme.info
            </property>
            <property name="elementsToReRender">
              local_configuration_panel
            </property>
          </properties>
          <rows>
            <row>
              <widget>flavor_selection</widget>
            </row>
          </rows>
          <widget name="flavor_selection" type="template">
            <labels>
              <label mode="any">
                label.local.configuration.theme.flavorSelection
              </label>
            </labels>
            <helpLabels>
              <label mode="any">
                label.local.configuration.theme.flavorSelection.help
              </label>
            </helpLabels>
            <translated>true</translated>
            <fields>
              <field>themeconf:flavor</field>
            </fields>
            <properties mode="any">
              <property name="template">
                /widgets/select_flavor_widget_template.xhtml
              </property>
            </properties>
          </widget>
        </layout>
  • <layout name="old_theme_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.theme
            </property>
            <property name="localConfigurationFacet">
              ThemeLocalConfiguration
            </property>
            <property name="helpLabel">
              label.local.configuration.theme.info
            </property>
          </properties>
          <rows>
            <row>
              <widget>theme_selection</widget>
            </row>
          </rows>
        </layout>

XML source

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

    <layout name="theme_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.theme
        </property>
        <property name="localConfigurationFacet">
          ThemeLocalConfiguration
        </property>
        <property name="helpLabel">
          label.local.configuration.theme.info
        </property>
        <property name="elementsToReRender">
          local_configuration_panel
        </property>
      </properties>
      <rows>
        <row>
          <widget>flavor_selection</widget>
        </row>
      </rows>
      <widget name="flavor_selection" type="template">
        <labels>
          <label mode="any">
            label.local.configuration.theme.flavorSelection
          </label>
        </labels>
        <helpLabels>
          <label mode="any">
            label.local.configuration.theme.flavorSelection.help
          </label>
        </helpLabels>
        <translated>true</translated>
        <fields>
          <field>themeconf:flavor</field>
        </fields>
        <properties mode="any">
          <property name="template">
            /widgets/select_flavor_widget_template.xhtml
          </property>
        </properties>
      </widget>
    </layout>

    <!-- deprecated since 5.5: use flavor selection instead -->
    <layout name="old_theme_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.theme
        </property>
        <property name="localConfigurationFacet">
          ThemeLocalConfiguration
        </property>
        <property name="helpLabel">
          label.local.configuration.theme.info
        </property>
      </properties>
      <rows>
        <row>
          <widget>theme_selection</widget>
        </row>
      </rows>
    </layout>

  </extension>