Drafts, versions and undo
This page is for the owner and editor-in-chief who want to know how safe the team's everyday work is. In Exponential every save is a version; the site shows the published one while a new draft is being written, and older published versions are kept as archived so you can go back (Publishing, versions and the trash). That makes most mistakes cheap to undo.
Contents
What is kept
| Thing | Kept how long | Source |
|---|---|---|
| Versions of an item | up to a limit per item; then the oldest archived version is removed to make room. The shipped default is 45 ([VersionManagement] DefaultVersionHistoryLimit=45), with a separate limit per class possible | settings/content.ini |
| The published version | always; it can never be removed from the versions page | Versions of an object |
| Drafts | until published, discarded or removed | My drafts and my pending items |
| Removed items | in the trash until someone empties it | Archiving and the trash |
Your site may use other limits; ask your administrator for the value in your content.ini.
Undoing a published mistake
- Open the item and press Manage versions (the round button with a clock).
- Compare the current version with the one before: changes are marked field by field.
- Choose the good version's translation under New draft from this version, in and press Make a new draft.
- Check the draft and publish it. The current version is not changed until you publish.
Full steps: Publishing, versions and the trash and Versions of an object.
Tip
The same works for someone else's version: the new draft is yours. That is how a colleague "takes over" a page.
What cannot be undone
| Action | Why it is final | Safer alternative |
|---|---|---|
| Empty trash, or removing items from the trash | deletes for good | restore first if in doubt |
| Removing an item's translation | deletes all its fields in that language, in every version (Content languages) | translate first, change the main language, then remove |
| Removing a user | users never go to the trash (Check user accounts) | disable the account |
| Removing form submissions | the collections are deleted; the forms stay (Collected information) | export as CSV first |
| Changes to a layout after publishing | layouts have drafts but not the item version history; two people editing the same layout overwrite each other (Landing pages with layouts) | one person per layout at a time |
Old drafts
Drafts pile up: started and forgotten, or left by someone who moved on. My drafts shows each person their own and offers Remove old drafts after 7, 30, 90 or 365 days without a change (My drafts and my pending items). Removing the draft of a new item also removes that new item, which was never published; a draft of a published item leaves the published version as it is.
A monthly five minutes:
- To do: Each editor opens My drafts, filters by age 30 days, finishes or removes.
- To do: The editor-in-chief asks leavers to do this before their last day (Offboarding staff).
- To do: Your administrator can also clean old drafts site-wide by cron: the script
old_drafts_cleanup.phpremoves drafts older than[VersionManagement] DraftsDuration(90 days shipped), at mostDraftsCleanUpLimit=100per run (settings/content.ini). It is not in the shipped global part; ask whether your site schedules it (Cronjobs).
Rules for the team
- Save as draft when interrupted (Store draft and exit), do not leave the form open.
- One person edits an item at a time; the edit form warns when someone else is editing (Creating and editing content).
- Before a big change, note the current version number. Going back is then one step.
Related pages
- Publishing, versions and the trash
- Versions of an object
- Archiving and the trash
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.