Joomla provides a simple locking strategy to prevent an article from being edited simultaneously by multiple users, where one user's changes might overwrite those of another. The first person to begin editing the article "checks it out," and the article is "locked," temporarily restricting access by other users. When the article is saved, it is said to be "checked in," the lock is removed, and restrictions are lifted. It's possible for a user to accidentally leave an article locked (checked-out) indefinitely. This tutorial explores how this can happen, and how administrators can check in articles.

Prerequisites

Setup

Create an Article

  1. Log in to Joomla backend, then click Content > Articles.
  2. Click New. Result: A new-article form appears.
    • Title: Animals
    • Article Text: leave blank or type a few simple words.
  3. Save & Close

Steps

  1. Edit the article you just created (Content > Articles, then click the article).
  2. Without saving or closing, close the browser tab or window. This simulates a user who is still editing the article.
  3. Open a new browser tab or window and view the article list (Content > Articles). Result: The article appears with a lock symbol, indicating that it's checked out and being edited.
  4. Hover over the lock icon. Result: The message displays the user who checked out the article, and the date and time it was checked out.
    Hovering over the Locked icon displays the user and what time the article was locked.
  5. Click the article. Result: Joomla recognises you as the current editor and opens it for editing. Note: Other users, even other administrators, attempting to edit the article are denied access with the following message:
    Error message when trying to edit a locked article
    Error message displayed when trying to edit a locked article.
  6. As the current editor, you're allowed access. Resume editing the article, then click Close to return to the article list. Note: Clicking Close or Save & Close checks the article back in.
  7. Edit the article again and close the browser tab or window, as before, to simulate a user still editing the article.
  8. Return to the article list and observe the lock symbol.
  9. As an administrator, you can check in the article by either:
    • clicking the lock symbol, or
    • checking the article checkbox, then selecting Actions > Check-In (useful when checking in multiple items at once).
  10. Choose either method to check the article in.
    An article being checked-in using the checkbox and action menu
    Checking in an article using the checkbox and Action menu.

Concepts

Article locking is intended to prevent multiple authors from editing the same article simultaneously, where one person saving the article may overwrite another person's work.

An administrator or Super User can override the check-out lock. This can be useful if an editing session is abandoned (e.g. the person closes the browser without saving, or otherwise navigates away from the edit screen without closing or saving). However, this can be risky if the author is still actively editing the article. Administrators must use discretion when checking in articles.

Article locking is a simple strategy to prevent inadvertent simultaneous editing. Coordination between editors and administrators is advised.

Permissions for articles can be set discretely, and workflows can be employed to achieve more sophisticated editing protection.