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

Property portlet.container.restrict is not working with Portlets rendered by TemplateProcessor

Details

    Description

      Steps to Reproduce

      1. Place this file in your /osgi/configs before starting Liferay (only necessary on master and 7.1.x);
      2. Startup Liferay DXP;
      3. Deploy the attached Layout Template according to respective DXP you're testing (you can use the same .war file for both master and 7.1.x);
      4. Go to Content > Web Content and add two different Basic Web Contents ("Content 1" and "Content 2", for example);
      5. Now go to Site's Page administrator and add a new Public Page using the new custom Layout Template;
      6. Go to that page and add a Web Content Display Portlet from the right sidebar;
      7. Choose one from the two Web Contents previously created to be shown on the Web Content Display;
      8. Now, inside the Asset Publisher Portlet that was already at the page, click on the other Web Content that you've created (different from Web Content Display's).

      Expected Behavior
      The Web Content Display shows the Web Content you previously chose in this Portlet's configuration.

      Actual Behavior
      The Web Content Display shows the Web Content you clicked on the Asset Publisher Portlet regardless of the first Portlet's configuration.

      Attachments

        Activity

          People

            raven.song Raven Song
            rodrigo.paulino Rodrigo Paulino (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              3 years, 50 weeks, 1 day ago

              Packages

                Version Package
                7.0.0 DXP FP70
                7.0.X
                7.1.10 DXP FP6
                7.1.10.2 SP2
                7.1.3 CE GA4
                7.1.X
                Master