Why are the 'Site Variations' not working properly?
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
- Page variations in Staging do not save distinct versions when edited, instead, edits populate across all variations.
Steps to reproduce
1. Start with a clean instance of Liferay 7.2 fix pack 9
2. In Site Administration > Publishing > Staging, enable Local Live Staging, check the boxes to enable page versioning, and Save
3. In Site Administration > Site Builder > Pages, Create a new content page title Test, add a Heading component to the page, and publish
4. Select 'Site Pages Variation' from the action button on the right side of the 'Publish to Live' button when viewing the Test page.
5. Add a Site Page Variation titled Test and select 'Main Variation' from the Copy Pages from Site Pages Variation dropdown
6. Press the button to enable the Test page on the Test variation
7. Select Main Variation from the Site Pages Variation dropdown menu
8. Add a Paragraph component to the page and publish
9. Select the Test variation in the Site Pages Variation dropdown menu
Expected Result: The paragraph is only published to the Main Variation.
Actual Result: The paragraph is published to the Test variation as well.
Environment
- Liferay DXP 7.2 Fix Pack 9
Resolution
- Site Page Variations can be enabled on content pages during staging because of the implementation of LPS-125755. Hence, the current site variation behavior is the portal's intended behavior.
Did this article resolve your issue ?