Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-26699

Use 'renditionVisible' attribute of 'pictureConversion' XML contribution to hide picture views in UIs

    XMLWordPrintable

    Details

      Description

      XML contribution pictureConversion has an optional boolean attribute renditionVisible, it should be used in our UIs to show/hide picture views.

      Visible picture views are returned by RenditionService#getAvailableRenditions, this list of visible picture views are also returned by content enricher renditions. This makes it quiet simple to hide picture views that are configured to be not visible.

      Here is a sample Studio XML extension to make picture view FullHD invisible:

      <require>org.nuxeo.ecm.platform.picture.ImagingComponent.default.config</require>
        <extension target="org.nuxeo.ecm.platform.picture.ImagingComponent" point="pictureConversions">
      
          <pictureConversion id="FullHD" renditionVisible="false" />
      
        </extension>
      

      This should make the picture view invisible in our UIs.

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: