Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-15096

Provide real web content preview functionality

    Details

      Description

      One of the most requested feature by our users was a real preview functionality for web contents. With "real" they ment that not approved web contents should be visible as if they were approved inside the page structure.

      We've implemented this feature by using the Liferay functionality of impersonating users. So we added a "preview" button in our themes (of course only for users with the right to add/ update and/or approve web contents) which is impersonating the guest user (default user) when clicked.

      Needed changes:
      1) PortalImpl.renderPortlet: set showPortlet to false if the guest user is not impersonated
      2) journal_content\view.jsp: if articleDisplay is null get the articleDisplay by getting the latest not approved article with the same articleId

        Attachments

        1. liferay6_not_approved.jpg
          78 kB
          Oliver Bayer
        2. liferay6_preview.jpg
          67 kB
          Oliver Bayer
        3. new-preview-functionality.jpg
          64 kB
          Oliver Bayer
        4. not-approved-article.jpg
          40 kB
          Oliver Bayer
        5. screenshot-1.jpg
          74 kB
          Szymon Golebiewski

          Issue Links

            Activity

              People

              • Assignee:
                support-lep@liferay.com SE Support
                Reporter:
                oli_bayer Oliver Bayer
              • Votes:
                15 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package