Configuring Page Publishing
By default, publishing a child page to Live also publishes its parent pages. This prevents orphaned pages. Always publishing parent pages to Live, however, can affect performance and prematurely publish the changes to parent pages. If desired, you can configure this behavior to only publish your selected pages, instead of always including parent pages.
Liferay DXP 2024.Q2+/Portal 7.4 GA120+ This configuration also affects manually exporting a site to an LAR file.
Follow these steps to configure child/parent publishing for your system:
-
Open the Global Menu (
), click the Control Panel, and go to System Settings → Infrastructure.
-
Click Staging under Virtual Instance Scope in the left menu.
-
Check or uncheck Publish Parent Pages by Default.
If checked, parent pages are always published to Live.
If unchecked, the parent page is only published if it doesn’t exist in Live yet. If the parent page was already published, only a reference element is added, which is used for the validation to make sure the parent is already in the Live site.
-
Click Save.
Publishing/Exporting Child Pages
Once the Publish Parent Pages by Default option is unchecked, you can select and publish/export only child pages.
To publish only a child page,
-
With the parent, the child page, and the selected staging process in place, visit your page and select the Staging tab at the top left corner.
-
Make alterations to the page and publish it.
-
Visit your page again and click Publish to Live to publish the changes you just made into Live.
-
Click Switch to Advanced Publish Process at the top right corner to see advanced options.
-
Under Pages to Publish, select the child page(s) you want to publish.
-
Configure the process and click Publish to Live.
Only the alterations to the selected child pages are published.
Liferay DXP 2024.Q2+/Portal 7.4 GA120+ To export a site manually and select only alterations from the child page,
Currently, this feature is behind a release feature flag (LPS-199086). Read Release Feature Flags for more information.
-
With the parent and the child page in place, open the Site Menu (
), expand Publishing, and select Export.
-
Click New.
-
Under Pages to Export, select the child page(s) you want to export.
-
Configure the process and click Export.
Only the alterations to the selected child pages are exported.