Details

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

      Description

      Right now, when you link a document from WebContent article, the URL to Download the file is inserted into the content, like:

      • /documents/10180/0/Word+edit+online.png/53c60475-110d-45ca-8076-b3321d64b9d6?t=1364396336239

      It's handled by Web Server Servlet and the document is immediately served by browser to the user. It would be very nice to give the user possibility to insert a "Document Detail View URL" instead == link to something like Documents and Media Display portlet with file in it. Then the URL in WebContent would be like:

      • /web/guest/documents?p_p_id=110_INSTANCE_xtEddPTcqL2S&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=2&_110_INSTANCE_xtEddPTcqL2S_struts_action=%2Fdocument_library_display%2Fview_file_entry&_110_INSTANCE_xtEddPTcqL2S_fileEntryId=10636

      This would be much more user friendly – because of Liferay's rich conversions in DL, user would most likely see a preview, then can decide whether he wants to download the file (e.g. long MS Office Word document). User can also view different versions of files this way, comments on file etc. Not to mention, that entitled users can e.g. immediately update / delete the file and not have to look for it in DL.

        Activity

        Hide
        Josef Šustáček added a comment -

        Some ideas on how this could be implemented:

        • create new Struts action in DL Display, make is whitelisted and renderable on any page. The JSP handling this action will allow only to view the file / its versions (the UI the same as DL File Entry Detail). CKEditor will give the user opportunity to insert either direct-download link or inline-view link.
        • handle /documents/* links conditionally, with ability to display the file inline in DL. Reading e.g. some parameter in URL (inline=1), this parameter will be added only by WebContent's document link-creator.
        • DL portlets can have a new "Link to this View" button / link, next to Download (101.6k) Get URL or WebDAV URL. on the right, giving the user the current URL (stripped of e.g. redirect param). This would allow user to send a link to some file to a coworker over IM / email easily.
        Show
        Josef Šustáček added a comment - Some ideas on how this could be implemented: create new Struts action in DL Display, make is whitelisted and renderable on any page. The JSP handling this action will allow only to view the file / its versions (the UI the same as DL File Entry Detail). CKEditor will give the user opportunity to insert either direct-download link or inline-view link. handle /documents/* links conditionally, with ability to display the file inline in DL. Reading e.g. some parameter in URL ( inline=1 ), this parameter will be added only by WebContent's document link-creator. DL portlets can have a new "Link to this View" button / link, next to Download (101.6k) Get URL or WebDAV URL. on the right, giving the user the current URL (stripped of e.g. redirect param). This would allow user to send a link to some file to a coworker over IM / email easily.

          People

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

            Dates

            • Created:
              Updated:
              Days since last comment:
              2 years, 4 weeks, 4 days ago

              Development

                Structure Helper Panel