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

Allow hiding of "download" everywhere

    XMLWordPrintable

    Details

      Description

      As of today (5.9.4), it is easy to show/hide the "Download" buttons in the toolbars (DM and DAM): It is about disabling the actions:

      <require>org.nuxeo.dam.actions</require>
      <extension  target="org.nuxeo.ecm.platform.actions.ActionService" point="actions">
        <action id="damDownloadAction" enabled="false" />
        <action id="downloadAction" enabled="false" />
      </extension>
      

      But we can't remove all "download" items displayed here and there:

      • Right click on the itmel in the content view
      • Little "download" icon on the right of the title in the content-view
      • Little downlopad icon in the "Main File" widget in the Summary
      • ...probably other places...

      They are in widget templates (for example, in content_widget_template.xhtml or video_conversions_widget_template.xhtml) and removing their "download" item would require to basically override all these widgets.

      The use case is the following: When a user downloads a file from the UI (so, not a REST call from an external app for example), it uses my Automation Chain where I keep track of the downloads, reject the current download after a custom quota is reached, etc. So I need to hide all and every "download" items and add my own Download user Action (in the toolbar typically) instead, so my custom chain is called.

      It would be very cool to have:

      • Either a way to override the default behavior and make Nuxeo to use a custom Automation Chain every time a file is downloaded, whatever the way it is done (this solution would be quite cool)
      • Or a way to show/hide items used inside the widgets. Maybe a filter added for all of them?

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: