Platform Explorer / Nuxeo Platform LTS 2017 9.10

Contribution org.nuxeo.ecm.platform.preview.widgets--widgettypes

This contribution is part of XML component org.nuxeo.ecm.platform.preview.widgets inside nuxeo-preview-jsf-9.10.jar /OSGI-INF/widgets-contrib.xml

Extension Point

Extension point widgettypes of component WebLayoutManager.

Contributed Items

  • <widgetType name="documentPreview">
          <configuration>
            <sinceVersion>6.0</sinceVersion>
            <title>Document Preview</title>
            <description>
              <p>This widget type displays the document preview.</p>
            </description>
            <fields>
              <list>false</list>
              <complex>false</complex>
              <defaultConfiguration>
                <field>data</field>
              </defaultConfiguration>
            </fields>
            <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/document_preview_widget.xhtml
          </property>
        </widgetType>

XML Source

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

    <widgetType name="documentPreview">
      <configuration>
        <sinceVersion>6.0</sinceVersion>
        <title>Document Preview</title>
        <description>
          <p>This widget type displays the document preview.</p>
        </description>
        <fields>
          <list>false</list>
          <complex>false</complex>
          <defaultConfiguration>
            <field>data</field>
          </defaultConfiguration>
        </fields>
        <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/document_preview_widget.xhtml
      </property>
    </widgetType>

  </extension>