All extensions

Utilities

Comeback

by Marcello Lang sold by Stacks Extensions

Total CMS deletes an image for good when you remove or replace it. Comeback keeps every file, so you can bring images back into their field, alt text and focal point included. Free and open source.

What it does

Total CMS deletes an image for good as soon as you remove it from a field or replace it, and its backups keep only the record, not the files. Comeback keeps every file of every object. Each image and gallery field gets a button Earlier images (n), and a trash lists everything that was removed or replaced, with preview, origin, date and who did it. One click brings an image back into its field, alt text and focal point included.

What it adds to the admin

  • Earlier images (n) next to every image and gallery field, with a side panel of the images that field had before
  • Comeback in the menu: the trash with search, date filter, collection and kind, to bring files back or delete them for good
  • Bring back object for deleted objects: restores the newest Total CMS backup of the object and puts all its files back in one step
  • A line in the delete confirmation that says what Comeback keeps (can be switched off in the settings)

The button only shows when a field has earlier images. If you want the admin exactly as it was, turn off Admin Assets for Comeback on the Extensions screen: the button and the delete line go away, the Comeback page and the trash keep working.

Who can use it

Super admins by default. In the settings you can open the Comeback page to everyone who can edit content or to chosen access groups; they only see entries of objects they may change. Deleting for good and the retention limits stay with super admins.

Setting it up

Install the ZIP on the Extensions screen and enable it. Comeback takes in the existing files on its own, a little with each request; tcms comeback:sync does it at once. Files are kept as hard links, which take no extra space while the original exists; where the server has no hard links, Comeback copies them. How many entries, how many days and how much space the trash may keep is in the settings.

Works with Live Edit

With Live Edit, the image dialog on the page shows earlier images and the trash, and brings an image back without opening the admin.

Good to know

  • Free and open source under the MIT License, source on GitHub
  • Download and updates through a free account on stacks-extensions.de
  • Comeback keeps files from the moment it is installed, not before
  • Needs Total CMS 3.6.10 or newer and PHP 8.2, any edition
  • Interface in eight languages, no outbound connections

Install it

Get the zip from Stacks Extensions (opens in a new tab), then drop it on Install Extension on the admin’s Extensions screen. It stays off until you enable it. Or from the command line:

terminal
tcms extension:install ~/Downloads/comeback.zip

Read the docs (opens in a new tab)

More screenshots

More from Marcello Lang

Comeback comes from Stacks Extensions.

Stacks Extensions sells it and supports it, and it installs on your own Total CMS site. No site yet? The trial is 45 days of every Pro feature, no credit card.