Platform Explorer / Nuxeo Platform 5.8

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-5.8.jar

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>

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>