Platform Explorer / Nuxeo Platform LTS 2015 7.10

Contribution org.nuxeo.ecm.localconf.contentview--widgets

This contribution is part of XML component org.nuxeo.ecm.localconf.contentview inside nuxeo-localconf-web-7.10.jar /OSGI-INF/local-configuration-content-view.xml

Extension point

Extension point widgets of component WebLayoutManager.

Contributed items

  • <widget name="content_view_selection" type="list">
          <labels>
            <label mode="any">label.local.configuration.content.view.contentViewSelection</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>cvconf:cvNamesByType</field>
          </fields>
          <properties mode="any">
            <property name="hideSubLabels">true</property>
          </properties>
          <subWidgets>
            <widget name="complexListItem" type="complex">
              <labels>
                <label mode="any"/>
              </labels>
              <fields>
                <field/>
              </fields>
              <properties mode="any">
                <property name="hideSubLabels">true</property>
                <property name="display">inline</property>
              </properties>
              <subWidgets>
                <widget name="docType" type="selectOneMenu">
                  <fields>
                    <field>docType</field>
                  </fields>
                  <labels>
                    <label mode="any"/>
                  </labels>
                  <selectOptions>
                    <options itemLabel="#{docType.label}" itemValue="#{docType.value}" value="#{contentViewConfigurationActions.availableDocTypes}" var="docType"/>
                  </selectOptions>
                </widget>
                <widget name="contentView" type="selectOneMenu">
                  <fields>
                    <field>contentView</field>
                  </fields>
                  <labels>
                    <label mode="any"/>
                  </labels>
                  <selectOptions>
                    <options itemLabel="#{contentView.label}" itemValue="#{contentView.value}" value="#{contentViewConfigurationActions.availableContentViews}" var="contentView"/>
                  </selectOptions>
                </widget>
              </subWidgets>
            </widget>
          </subWidgets>
        </widget>

XML source

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

    <widget name="content_view_selection" type="list">
      <labels>
        <label mode="any">label.local.configuration.content.view.contentViewSelection</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>cvconf:cvNamesByType</field>
      </fields>
      <properties mode="any">
        <property name="hideSubLabels">true</property>
      </properties>
      <subWidgets>
        <widget name="complexListItem" type="complex">
          <labels>
            <label mode="any"/>
          </labels>
          <fields>
            <field/>
          </fields>
          <properties mode="any">
            <property name="hideSubLabels">true</property>
            <property name="display">inline</property>
          </properties>
          <subWidgets>
            <widget name="docType" type="selectOneMenu">
              <fields>
                <field>docType</field>
              </fields>
              <labels>
                <label mode="any"/>
              </labels>
              <selectOptions>
                <options itemLabel="#{docType.label}" itemValue="#{docType.value}" value="#{contentViewConfigurationActions.availableDocTypes}" var="docType"/>
              </selectOptions>
            </widget>
            <widget name="contentView" type="selectOneMenu">
              <fields>
                <field>contentView</field>
              </fields>
              <labels>
                <label mode="any"/>
              </labels>
              <selectOptions>
                <options itemLabel="#{contentView.label}" itemValue="#{contentView.value}" value="#{contentViewConfigurationActions.availableContentViews}" var="contentView"/>
              </selectOptions>
            </widget>
          </subWidgets>
        </widget>
      </subWidgets>
    </widget>

  </extension>