Platform Explorer / Nuxeo Platform LTS 2015 7.10

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

This contribution is part of XML component org.nuxeo.ecm.platform.comment.widgets inside nuxeo-platform-comment-web-7.10.jar /OSGI-INF/widgets-contrib.xml

Extension point

Extension point widgettypes of component WebLayoutManager.

Contributed items

  • <widgetType name="document_comments_count">
          <configuration>
            <sinceVersion>5.7.2</sinceVersion>
            <title>Comments Count</title>
            <description>
              <p>This widget displays how many comments a document has.</p>
              <p>
                It requires the following fields configuration: first field maps
                the document model.
              </p>
            </description>
            <categories>
              <category>summary</category>
            </categories>
            <supportedModes>
              <mode>view</mode>
            </supportedModes>
            <!-- no configurable properties -->
          </configuration>
          <handler-class>
            org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
          </handler-class>
          <property name="template">
            /widgets/summary/comments_count_widget_template.xhtml
          </property>
        </widgetType>

    This widget displays how many comments a document has.

    It requires the following fields configuration: first field maps the document model.

XML source

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

    <widgetType name="document_comments_count">
      <configuration>
        <sinceVersion>5.7.2</sinceVersion>
        <title>Comments Count</title>
        <description>
          <p>This widget displays how many comments a document has.</p>
          <p>
            It requires the following fields configuration: first field maps
            the document model.
          </p>
        </description>
        <categories>
          <category>summary</category>
        </categories>
        <supportedModes>
          <mode>view</mode>
        </supportedModes>
        <!-- no configurable properties -->
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /widgets/summary/comments_count_widget_template.xhtml
      </property>
    </widgetType>

  </extension>