Platform Explorer / Nuxeo Platform LTS 2015 7.10

Contribution org.nuxeo.ecm.diff.widgets.contrib--widgettypes

This contribution is part of XML component org.nuxeo.ecm.diff.widgets.contrib inside nuxeo-diff-jsf-7.10-HF03.jar /OSGI-INF/diff-widgets-contrib.xml

Extension point

Extension point widgettypes of component WebLayoutManager.

Contributed items

  • <widgetType name="version_diff">
          <configuration>
            <title>Diff between live document and a version</title>
            <sinceVersion>5.7</sinceVersion>
            <description>
              <p>
                The version_diff widget displays difference between the live document and a specific version. If
                nothing is specified, last version is compared.
              </p>
              <p>
                It accepts the following properties:
                <ul>
                  <li>
                    versionLabel: the name of the expected label, defautl is "lastVersion"
                  </li>
                  <li>
                    propertyXPath: the property XPath, default is "file:content"
                  </li>
                  <li>
                    height: the iFrame height, default is "400px"
                  </li>
                </ul>
              </p>
            </description>
            <supportedModes>
              <mode>view</mode>
            </supportedModes>
            <categories>
              <category>summary</category>
            </categories>
          </configuration>
          <handler-class>
            org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
          </handler-class>
          <property name="template">/widgets/version_diff_widget_template.xhtml</property>
        </widgetType>

    The version_diff widget displays difference between the live document and a specific version. If nothing is specified, last version is compared.

    It accepts the following properties:

    • versionLabel: the name of the expected label, defautl is "lastVersion"
    • propertyXPath: the property XPath, default is "file:content"
    • height: the iFrame height, default is "400px"

XML source

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

    <widgetType name="version_diff">
      <configuration>
        <title>Diff between live document and a version</title>
        <sinceVersion>5.7</sinceVersion>
        <description>
          <p>
            The version_diff widget displays difference between the live document and a specific version. If
            nothing is specified, last version is compared.
          </p>
          <p>
            It accepts the following properties:
            <ul>
              <li>
                versionLabel: the name of the expected label, defautl is "lastVersion"
              </li>
              <li>
                propertyXPath: the property XPath, default is "file:content"
              </li>
              <li>
                height: the iFrame height, default is "400px"
              </li>
            </ul>
          </p>
        </description>
        <supportedModes>
          <mode>view</mode>
        </supportedModes>
        <categories>
          <category>summary</category>
        </categories>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">/widgets/version_diff_widget_template.xhtml</property>
    </widgetType>
  </extension>