Platform Explorer / Nuxeo Platform LTS 2015 7.10

Contribution org.nuxeo.platform.TemplateSources.layouts.contrib--widgets

This contribution is part of XML component org.nuxeo.platform.TemplateSources.layouts.contrib inside nuxeo-template-rendering-web-7.10-HF02.jar /OSGI-INF/layouts-contrib.xml

Extension point

Extension point widgets of component WebLayoutManager.

Contributed items

  • <widget name="fileWithTemplate" type="template">
          <labels>
            <label mode="any">label.file.content</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>file:content</field>
            <field>file:filename</field>
            <field>contextData['request/templateId']</field>
          </fields>
          <widgetModes>
            <mode value="create">create</mode>
            <mode value="edit">edit</mode>
            <mode value="view">view</mode>
            <mode value="view">preview</mode>
          </widgetModes>
          <properties mode="any">
            <property name="template">
              /widgets/filewithtemplate_widget.xhtml
            </property>
            <property name="availableTemplates">
              #{templateActions.getAvailableOfficeTemplates(value.type)}
            </property>
          </properties>
        </widget>

XML source

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

    <widget name="fileWithTemplate" type="template">
      <labels>
        <label mode="any">label.file.content</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>file:content</field>
        <field>file:filename</field>
        <field>contextData['request/templateId']</field>
      </fields>
      <widgetModes>
        <mode value="create">create</mode>
        <mode value="edit">edit</mode>
        <mode value="view">view</mode>
        <mode value="view">preview</mode>
      </widgetModes>
      <properties mode="any">
        <property name="template">
          /widgets/filewithtemplate_widget.xhtml
        </property>
        <property name="availableTemplates">
          #{templateActions.getAvailableOfficeTemplates(value.type)}
        </property>
      </properties>
    </widget>

  </extension>