PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-33757

Provide an extension mechanism for folder actions in the Documents and Media portlet.

    Details

    • Type: Feature Request Feature Request
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: DM
    • Labels:
      None
    • Similar Issues:
      Show 5 results 

      Description

      Provide an extension mechanism for folder actions in the Documents and Media portlet.

      The current folder actions page (folder_actions.jsp) is hard-coded with pre-defined folder actions.

      It is possible to extend the folder action items using a custom JSP in a hook plugin, however this approach does not allow multiple hooks to customise the JSP. The first? or last? hook in the extension chain will override the JSP.

      A better approach is required to enable adding custom folder actions.

        Activity

        Hide
        Tim Telcik added a comment -
        Show
        Tim Telcik added a comment - This issue is related to this issue Document Library Portlet init-ext.jsp is not included by init.jsp
        Hide
        Tim Telcik added a comment -

        A sample solution is provided at

        Show
        Tim Telcik added a comment - A sample solution is provided at sample-liferay-dm-action-menu-extension
        Show
        Tim Telcik added a comment - - edited This issue is related to this issue: LPS-34026 - The Liferay Portal 6.1 EE GA2 (6.1.20) hook plugin mechanism does not allow multiple hooks to over-ride the same custom JSP
        Hide
        Tim Telcik added a comment -

        Posted thread to Liferay Marketplace App Development Forum at

        Show
        Tim Telcik added a comment - Posted thread to Liferay Marketplace App Development Forum at https://www.liferay.com/web/developer/marketplace/forums/-/message_boards/message/41098323
        Hide
        James Falkner added a comment -

        Hey Tim,

        See LPS-49529 - this is going to implement something that you could use to do what you need (custom folder actions) via an OSGi "hook" (DisplayContext). It will be in Liferay 7 (it might be backportable to 6, since there is some amount of OSGi functionality in 6, but I'm not positive it is enough).

        Show
        James Falkner added a comment - Hey Tim, See LPS-49529 - this is going to implement something that you could use to do what you need (custom folder actions) via an OSGi "hook" (DisplayContext). It will be in Liferay 7 (it might be backportable to 6, since there is some amount of OSGi functionality in 6, but I'm not positive it is enough).
        Hide
        Tim Telcik added a comment -

        Hi James,

        thanks for the link to LPS-49529 - Let menu actions of a file entry be overridden by its display context

        I can also see related ticket LPS-49146 - Let D&M views be extended

        https://issues.liferay.com/browse/LPS-49146

        • Tim
        Show
        Tim Telcik added a comment - Hi James, thanks for the link to LPS-49529 - Let menu actions of a file entry be overridden by its display context I can also see related ticket LPS-49146 - Let D&M views be extended https://issues.liferay.com/browse/LPS-49146 Tim

          People

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

            Dates

            • Created:
              Updated:
              Days since last comment:
              29 weeks, 6 days ago

              Development

                Structure Helper Panel