How to Use Content Versions in Joomla

| Joomla
How to Use Content Versions in Joomla

Do you work with clumsy people?

Are you sometimes clumsy?

If you answered "Yes" to either question, then there is a Joomla feature that's perfect for you.

Versions is a security feature for your content. Versions allow you to keep a copy of your Joomla articles every time you save a change.

The Versions button appears in the toolbar at the top of your articles screen. Notice the "Versions" button on the right.

joomla content revisions

Every time you save your article, a new version will be accessible via this pop-up window. The current version of the article is marked by a gold star.

The current version of a Joomla article marked with a gold star

To compare the current version with a previous version, check the boxes next to the versions and click Compare.

Compare two different Joomla article versions

Text that has been removed is marked in red and text that has been added will be marked in green.

Viewing removed text in Joomla versions

Joomla doesn't just store all of your content, but also the settings for your articles.

In this example, you can see that the version on the right has been changed so that Featured set to Yes.

The Featured setting has changed for a Joomla article

To roll back to a previous version, check the box next to the version and click Restore:

Restoring the version of a Joomla article

Options to see changes more easily

Because all of the options for the article are saved, it can be easier to see only what has changed.

  • Click Changed Values in the top-right corner.
See the changed values for a Joomla article
  • You'll now see only the article options that were changed:
See the Joomla article options that changed
  • By default, versions will show only the article text, but there is a Show HTML Code button:
Show HTML code button in Joomla
  • You will now see the underlying HTML code in the article:
See the HTML code in a Joomla article versiom

This HTML feature will be useful because the versions don't display images. Even if they did, there wouldn't be room inside the pop-up to cleanly display large images.

Images inside a Joomla article version

Version options

There are two configuration options for Versioning.

  • Save History allows you to turn Versioning on and off.
  • Maximum versions allows you to limit the number of versions that are stored.
Joomla version options

Even if the maximum versions is set to 10, it is possible to mark a version as so that it can not be deleted:

Ensure that a Joomla article version can't be deleted

The versions are stored in a database table called _ucm_history. UCM stands for Unified Content Model. The goal of Joomla's developers is to allow any extension to use this versions feature.


About the author

Steve is the founder of OSTraining. Originally from the UK, he now lives in Sarasota in the USA. Steve's work straddles the line between teaching and web development.