Platform Explorer / Nuxeo Platform 5.6

Contribution org.nuxeo.ecm.platform.picture.jsf.layouts--widgettypes

This contribution is part of XML component org.nuxeo.ecm.platform.picture.jsf.layouts inside nuxeo-platform-imaging-jsf-5.6.jar

Extension point

Extension point widgettypes of component WebLayoutManager.

Contributed items

  • <widgetType name="picture_view">
          <configuration>
            <title>Picture view</title>
            <description>
              <p>
                The picture_view widget displays the configured View of a document
                having the Picture facet.
              </p>
              <p>
                It accepts the following properties:
                <ul>
                  <li>
                    pictureView: the name of the view. Defaults to the 'Medium'
                    view.
                  </li>
                  <li>
                    width: the width of the img tag.
                  </li>
                  <li>
                    height: the height of the img tag.
                  </li>
                </ul>
              </p>
            </description>
            <categories>
              <category>document</category>
            </categories>
            <supportedModes>
              <mode>view</mode>
            </supportedModes>
          </configuration>
          <handler-class>
            org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
          </handler-class>
          <property name="template">/widgets/picture_view_widget_template.xhtml</property>
        </widgetType>

    The picture_view widget displays the configured View of a document having the Picture facet.

    It accepts the following properties:

    • pictureView: the name of the view. Defaults to the 'Medium' view.
    • width: the width of the img tag.
    • height: the height of the img tag.

XML source

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

    <widgetType name="picture_view">
      <configuration>
        <title>Picture view</title>
        <description>
          <p>
            The picture_view widget displays the configured View of a document
            having the Picture facet.
          </p>
          <p>
            It accepts the following properties:
            <ul>
              <li>
                pictureView: the name of the view. Defaults to the 'Medium'
                view.
              </li>
              <li>
                width: the width of the img tag.
              </li>
              <li>
                height: the height of the img tag.
              </li>
            </ul>
          </p>
        </description>
        <categories>
          <category>document</category>
        </categories>
        <supportedModes>
          <mode>view</mode>
        </supportedModes>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">/widgets/picture_view_widget_template.xhtml</property>
    </widgetType>

  </extension>