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

Global scoped Web Content Display portlet is not displaying the article on the live site

    Details

      Description

      Steps to reproduce:

      set up two liferay instances, staging and live

      1) create new site "test" and add a "page"
      2) on Global site, create new web content article "global article"
      3) add a Web Content display portlet to "page" on "test"
      4) set the scope of the Web Content Display portlet to Global and select "global article"
      5) publish Global to remote first
      6) now publish "test" to remote (depends on LPS-43604)
      7) navigate to live "test" site and verify that the WCD portlet is not visible

      Expected behavior: WCD portlet will display the global article
      Actual behavior: WCD portlet is hidden and does not display anything

      Notes:
      the portlet is hidden because we hide WCD portlets that don't have any content by setting renderRequest.setAttribute(WebKeys.PORTLET_CONFIGURATOR_VISIBILITY, Boolean.TRUE);

      This attribute hides the portlet, because there is not article in the request. The article is null because the portal attempts to find the Global reference with the articleId from the staging site and not the updated articleId from the live site.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yunlin.sun Yunlin "Steven" Sun
              Reporter:
              andrew.betts Andrew Betts
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 37 weeks, 3 days ago

                  Packages

                  Version Package
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M1