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

A section's background image is not published to Live site when using Content Pages with Staging

    Details

      Description

      Issue
      A section's background image is not published to Live site when using Content Pages with Staging

      Steps to Reproduce

      1. Enable Staging on the target site
      2. Check the Group ID of the site in Site Settings, and make note of it (e.g. 34378)
      3. Add a new public page with Content Page type
      4. Edit the Content Page
      5. On the right hand panel, select Section Builder (the second icon)
      6. Click the Layouts dropdown, and drag the first (1 column) layout onto the page
      7. Click on the newly added section and click on the Layout Background Image icon (the second contextual icon)
      8. Click the Select button, and select an image file to add as the background. Once completed, click Add.
      9. Inspect that Section, and make note of the URL and groupId (e.g. 37061):
        box-sizing: border-box;background-position: 50% 50%; background-repeat: no-repeat; background-size: cover; background-image: url(/documents/37061/0/sample.png/e30dcdfb-87f2-dcc0-b5e1-8b82bd6be46a?t=1600062453164&download=true);border-style: solid; border-width: 0px;opacity: 1.0;
      10. Publish the Content Page
      11. Revisit the Content Page, then Publish the page from Staging to Live
      12. Check the Live version of that page, and inspect the Section, and make note of the URL and groupId:
        box-sizing: border-box;background-position: 50% 50%; background-repeat: no-repeat; background-size: cover; background-image: url(/documents/37061/0/sample.png/e30dcdfb-87f2-dcc0-b5e1-8b82bd6be46a?t=1600062453164&download=true);border-style: solid; border-width: 0px;opacity: 1.0;

      Actual Behavior
      Background image is using the Staged version (i.e., group ID: 37061) as oppposed to the Live site's version (i.e., group ID: 34378)
      [^31577.mp4]

      Expected Behavior
      The background image should have been promoted to the Live site and should be used by the live site's layout section.

      Reproduced in
      DXP 7.2 + DXP-7 + liferay-hotfix-2441-7210
      7.2.x Commit: bc64edf80507c9255c24669220fd1d5b4a44ae00
      Master Commit: 30e4b2b7654d886a1edf8631ccbb852b3847354c

      • Note: On master, I tested this against "Button" under sections and set the background in the same manner

        Attachments

          Activity

            People

            Assignee:
            joyce.wang Joyce Wang
            Reporter:
            hong.vo Hong Vo
            Participants of an Issue:
            Recent user:
            Sophia Zhang
            Engineering Assignee:
            Eudaldo Alonso
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 7 weeks, 6 days ago

                Packages

                Version Package
                7.2.X
                7.3.10 DXP FP1
                7.3.10.1 DXP SP1
                7.4.13 DXP GA1
                Master