Configuring Locked Pages
Liferay DXP 2023.Q3+/Portal 7.4 GA92+
Liferay locks pages during editing to avoid conflicts when multiple users try to edit the same page.
This feature works with content, master, utility, and collection pages, along with page and display page templates.
Locking the Page
Whenever a user starts editing a page and adds new content to it, the page locks, preventing other users from accessing it.
If users try to access a locked page, a Page in Use message appears instead. This page shows a Go Back or a Go To [Previous Page Name] depending on whether the previous page exists.
Users can only discard drafts of unlocked pages.
Not all events lock a page:
- You can still modify a page’s master page or its stylebook without locking the page.
- You can propagate Fragments, even if a page is locked.
- You can import a page’s page template, even if a page is locked.
If you are working with Publications, the page and its publications are locked and unlocked together.
Unlocking a Page
Most of the time, you don’t have to worry about unlocking a page, as the system unlocks it automatically.
For example, when a user changes a page from edit mode to view mode, when the user logs out, or when the user closes the tab with the page, Liferay unlocks the page.
If a user leaves a page open in Edit mode for a long time without making changes, the system automatically unlocks the page. The amount of time can be configured:
-
Open the Global Menu () and Navigate to Control Panel → Instance Settings under Configuration.
-
Under Content and Data, select Pages.
-
Under Virtual Instance Scope, select Locked Pages.
-
Toggle Allow Automatic Unlocking Process.
If you want to disable the feature, turn it off.
-
Set a Time Without Autosave in minutes.
The Time Without Autosave may not be accurate as the system checks for locked pages every 15 minutes.
Site Administrators or Super Administrators can unlock pages manually.
-
Open the Site Menu () and go to Configuration → Locked Pages.
-
Click Actions () next to the locked page you want to unlock → Unlock.
You can select multiple pages and bulk-unlock them by clicking on the Lock () icon or the Actions button next to it → Unlock.
The page is unlocked. All the autosaved alterations are kept, and you can now edit the page.
In this list you can also see the type of the page, the user currently editing the page, and the time since the last autosave.