Version history and accountability
This page is for editors, web managers and records officers who need to show what a public page said at a given time
and who changed it. Two sources answer this: the versions page of each object and the audit trail. Sources:
Versions of an object, settings/content.ini [VersionManagement] and
Audit trail.
Contents
- The versions page
- How many versions are kept
- The audit trail
- Answering typical questions
- Limits
- Related pages
The versions page
/content/history/<object id>, opened with Manage versions in the editor or from the context menu:
- Each save is a version: draft, published, archived (the one before the current), pending or rejected.
- Compare shows the differences between two versions (with
content/diff). - Make a new draft from an old version restores old text: the draft is yours and is published as usual (and passes the approval workflow again).
- Remove selected versions removes drafts and archived or rejected versions for good (
content/versionremove); the published version and versions in a running workflow are never removed. - Whoever may edit the object opens its versions; someone else's draft or pending version needs
content/versionread(Who sees what).
How many versions are kept
settings/content.ini:
[VersionManagement]
DefaultVersionHistoryLimit=45
VersionHistoryClass[1]=75When an object reaches its limit, the oldest archived version makes room for the next. VersionHistoryClass[] sets
a limit per class (by id or, since 4.1.1, by identifier). If your records rules require more history for some
content (regulations, decisions), raise the limit for those classes in settings/override/content.ini.append.php,
mindful that the database grows with it. After lowering a limit, bin/php/cleanupversions.php removes the excess
archived versions (php bin/php/cleanupversions.php --help --allow-root-user lists its options).
The audit trail
The content channel records publish, move, copy, remove, hide, sections, states, trash and versions, with the user
and time; the access channel records sign-ins. Records are hash-chained, kept live 90 days and archived for 730
days by default (settings/audit.ini, channels content, access, system, commerce), which you can change per
channel (Audit trail).
Answering typical questions
| Question | Where |
|---|---|
| What did this page say on 1 March? | versions page: the version published before and after that date; open it with View |
| Who changed it? | the version's creator on its card; the audit trail's content.* events for the object |
| Who removed this page? | audit trail: a subtree removal is one parent event with one child per node |
| Who approved it? | while running: the approval request; afterwards: your workflow's records and the audit trail |
| When did it go live? | the published date; the audit event of the publish |
Limits
- The version history is not an archive: versions beyond the limit are removed, and removing an object removes its versions (after the trash is emptied). Long-term preservation belongs to your records process.
- Who approved a version is not stored on the version; keep approval records where your rules require.
- Only content is versioned: settings, templates and roles are not; their changes are in the
systemandaccesschannels of the audit trail, and in version control when settings are managed by deployment.
Related pages
- Drafts and pending items
- Two-person rule for publishing
- Role design: auditors
- Versions of an object guide
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.