Making and Publishing Changes

Liferay 7.3+

Publications provides a convenient way to manage changes to your Liferay instance. With it, you and your team can create and collaborate on blocks of changes called ‘publications’. You can then publish those changes to production when ready.

Note

By default, users can only contribute to publications they’ve created. However, they can invite other users to collaborate on their publications. See Collaborating on Publications for more information.

If you haven’t already created a publication to track changes, see Creating a Publication for more information.

Once created, a publication is updated automatically with changes made to production, provided they don’t conflict with changes made in the publication. This ensures you and your team are working on the latest version of production.

Important

After upgrading your Liferay version, existing publications cannot be changed, published, or reverted. All active publications are marked as out of date and can only be viewed or deleted. Liferay DXP 2024.Q2+/Portal GA120+ But you can move compatible changes to a publication. See Managing Out-of-date Publications to learn more. Also, the Revert option is removed for publications published before your upgrade.

Making Changes in a Publication

Before making changes to your instance, ensure you’re working on the correct publication. You can confirm this via the Publications bar. If you’re not currently in a publication, you can create one or select an existing one.

Select the desired publication or create one.

When you add, edit, or remove assets in a publication, your changes are only visible in the publication where they’re made. When you delete an asset in a publication, DXP marks it for deletion and hides it when viewing the publication. The asset remains viewable to production and other publications, since its removal is only a logical deletion.

While working on a publication, changes made to supported Liferay components are tracked in the publication. This includes changes across multiple sites.

Important

When editing different sites in the same publication, keep in mind that all tracked changes are applied to production when the publication is published.

Liferay DXP 2024.Q4+/Portal GA129+ Release Feature Flag (LPD-20131)

When you change the site context while using a publication, a warning appears to prevent unintentional changes. This safeguard enhances user safety when navigating and interacting within the site with Publications enabled.

Upon context change, you can choose to Stay in Current Publication, Select a Publication, or Work on Production. Additionally, you can check the Do not show this message again option and select a duration from the list: 1 hour, 4 hours, 24 hours, or Forever.

To reactivate the warning,

  1. Open the Global Menu (Global Menu), go to the Applications tab, and click Publications.

  2. Click Options (Options icon) at the top right corner, uncheck the Hide warning when changing contexts options, and click Save.

A warning appears when you change the site context within a publication to prevent unintentional changes. You can deactivate or reactivate this warning as needed.

Liferay DXP 2023.Q3+/Portal GA92+

If you navigate to an application that does not support Publications, Liferay indicates that changes in the application cannot be saved to a publication.

For some applications, you can directly edit production while in a publication.

For other applications, you must switch to production before you can make changes.

Directly edit production while in a publication or switch to production before making changes in the application.

Making Changes in Parallel Publications

Liferay DXP 2023.Q3+/Portal GA92+

Users can have multiple active publications at the same time. Changes made in these parallel publications create alternative edit histories for your instance’s entities. These changes can be compatible or conflicting, depending on whether they modify the same or related content.

Compatible Changes

If parallel publications include compatible changes, they can be published without issue. In this case, the tracked changes of both publications are applied to production.

Conflicting Changes

If parallel publications include incompatible changes and one of the publications is applied to production first, then the other publication displays publishing conflicts. These conflicts can also be caused when production is updated directly. See Resolving Conflicts for more information on this process.

Publishing Your Changes

When you’ve finished making your changes, you can publish them immediately or schedule them to be published at a later time. Once published, a publication appears in the History tab of the Publications application. This maintains a clear audit trail that you can use review and revert site changes when needed. See Reverting Changes for more information.

When you begin the publishing process, Liferay performs a compatibility check to determine if there are any conflicts between the publication and production. If there are conflicts, DXP notifies you. While some conflicts are resolved automatically, others require manual resolution. Resolving all conflicts is necessary for publishing changes. See Resolving Conflicts for more information.

Publishing Now

Follow these steps to publish changes immediately:

  1. Open the Publications drop-down menu, and select Review Changes.

    Alternatively, open the Publications application, and click on the desired publication.

  2. Click Publish.

  3. If necessary, manually resolve any detected conflicts. Once all conflicts are resolved, you can proceed.

    Resolve all conflicts before publishing.

  4. Click Publish.

The publication’s changes are immediately applied to production, and you are redirected to the History tab. From here, you can view publishing details (e.g., date, publisher, status) and revert a publication’s changes if desired.

Scheduling for Later

Follow these steps to schedule publishing for a later time.

  1. Open the Publications drop-down menu, and select Review Changes.

    Alternatively, open the Publications application, and click on the desired publication.

  2. Click Schedule.

  3. If necessary, manually resolve any detected conflicts. Once all conflicts are resolved, you can proceed.

    Important

    At the time of the publication, DXP performs a second conflict detection to ensure there are no new conflicting changes. The publishing process fails if DXP detects new conflicts that cannot be automatically resolved. If the conflicts can be resolved automatically, DXP proceeds with publishing.

  4. Enter a date and time to determine when the changes are published to production.

  5. Click Schedule to complete the process.

Warning

Overlapping schedules can cause delays or retries. For best results, schedule publications at different times.

This redirects you to the Scheduled tab where you can view and manage scheduled publications.

Feature Availability by Version

FeatureLiferay DXP VersionPortal VersionNotes
Navigating Unsupported Applications2023.Q3+GA92+Liferay notifies when an application doesn’t support Publications. Users may need to switch to production.
Parallel Publications2023.Q3+GA92+Multiple publications can be managed in parallel.
Publication Size2025.Q2+NAA size badge appears in the toolbar indicating whether the publication is small, medium, or large.