Configuring Page Publishing
Staging and publishing settings control how pages and their content are published to Live, optimizing performance and ensuring consistency. These settings determine whether parent pages are included by default, how displayed content is handled, and how temporary files are managed during the publishing process.
By default, publishing a child page to Live also publishes its parent pages to prevent orphaned pages. However, always publishing parent pages can impact performance and prematurely publish changes to parent pages. You can configure these settings to only publish selected pages and further customize how staging and publishing processes work.
Liferay DXP 2024.Q2+/Portal 7.4 GA120+ This configuration also affects manually exporting a site to an LAR file.
To adjust publishing configurations,
-
Open the Global Menu (), click the Control Panel, and go to System Settings → Infrastructure.
-
Click Staging under Virtual Instance Scope in the left menu. The following settings are available:
Setting Enabled Behavior Disabled Behavior Publish Parent Pages by Default Parent pages are always published to Live. The parent page is only published if it doesn’t exist in Live yet. A reference element is added to ensure the parent is already in the Live site. Publish Displayed Content by Default Displayed content is published to Live for Dynamic Data Lists Display, Form, Web Content Display, and Wiki Display regardless of the publish process settings. This ensures consistency between Staging and Live. Displayed content already available in Live is not re-published, which can improve performance. Delete Temporary LAR During a Failed Staging Publish Process The temporary LAR is deleted during a failed staging publish process. The temporary LAR is retained when a staging publish process fails, which is useful for troubleshooting issues. Delete Temporary LAR During a Successful Staging Publish Process The temporary LAR is deleted during a successful staging publish process. The temporary LAR is retained after a successful staging publish process. Use the Virtual Host of the Remote Site The remote site’s virtual host is used when accessing the remote Live site from the staged site. The remote site’s virtual host is not used. -
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.