Platform Explorer / Nuxeo Platform LTS 2015 7.10

Contribution org.nuxeo.search.ui.local.configuration.layouts--widgets

This contribution is part of XML component org.nuxeo.search.ui.local.configuration.layouts inside nuxeo-search-ui-7.10-HF03.jar /OSGI-INF/search-local-configuration-layouts-contrib.xml

Extension point

Extension point widgets of component WebLayoutManager.

Contributed items

  • <widget name="search_content_views_selection" type="shuttle">
          <labels>
            <label mode="any">
              label.search.local.configuration.content.view.selection.label
            </label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>searchc:allowedContentViews</field>
          </fields>
          <properties mode="any">
            <property name="availableElementsLabel">
              label.search.local.configuration.content.view.selection.available
            </property>
            <property name="selectedElementsLabel">
              label.search.local.configuration.content.view.selection.enable
            </property>
            <property name="sourceItems">
              #{searchUIConfigurationActions.getNotSelectedContentViewHeaders(layoutValue)}
            </property>
            <property name="sourceItemVar">contentViewHeader</property>
            <property name="sourceItemValue">#{contentViewHeader.name}</property>
            <property name="sourceItemLabel">
              #{contentViewHeader.translateTitle ?
              messages[contentViewHeader.title] : contentViewHeader.title}
            </property>
            <property name="sourceItemOrdering">label</property>
            <property name="sourceItemCaseSensitive">true</property>
            <property name="targetItems">
              #{searchUIConfigurationActions.getSelectedContentViewHeaders(layoutValue)}
            </property>
            <property name="targetItemVar">contentViewHeader</property>
            <property name="targetItemValue">#{contentViewHeader.name}</property>
            <property name="targetItemLabel">
              #{contentViewHeader.translateTitle ?
              messages[contentViewHeader.title] : contentViewHeader.title}
            </property>
          </properties>
        </widget>

XML source

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

    <widget name="search_content_views_selection" type="shuttle">
      <labels>
        <label mode="any">
          label.search.local.configuration.content.view.selection.label
        </label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>searchc:allowedContentViews</field>
      </fields>
      <properties mode="any">
        <property name="availableElementsLabel">
          label.search.local.configuration.content.view.selection.available
        </property>
        <property name="selectedElementsLabel">
          label.search.local.configuration.content.view.selection.enable
        </property>
        <property name="sourceItems">
          #{searchUIConfigurationActions.getNotSelectedContentViewHeaders(layoutValue)}
        </property>
        <property name="sourceItemVar">contentViewHeader</property>
        <property name="sourceItemValue">#{contentViewHeader.name}</property>
        <property name="sourceItemLabel">
          #{contentViewHeader.translateTitle ?
          messages[contentViewHeader.title] : contentViewHeader.title}
        </property>
        <property name="sourceItemOrdering">label</property>
        <property name="sourceItemCaseSensitive">true</property>
        <property name="targetItems">
          #{searchUIConfigurationActions.getSelectedContentViewHeaders(layoutValue)}
        </property>
        <property name="targetItemVar">contentViewHeader</property>
        <property name="targetItemValue">#{contentViewHeader.name}</property>
        <property name="targetItemLabel">
          #{contentViewHeader.translateTitle ?
          messages[contentViewHeader.title] : contentViewHeader.title}
        </property>
      </properties>
    </widget>
  </extension>