Scrivito is proudly made by JustRelate Group in Berlin, Germany, and Wrocław, Poland.
Scrivito is proudly made by JustRelate Group

Restoring Content using the Publishing History

Restoring Content using the Publishing History

Each time a working copy is published, Scrivito adds it to your publishing history. It’s the key to finding and reactivating content that has meanwhile been altered or removed from your website. If, for example, you need to access an earlier version of a specific page, undelete a widget, or want to completely reset your website content to an earlier state, the publishing history simply lets you do it.

How it works

Publishing a working copy causes the currently published content to be archived and the working copy to take its place. This way, the publishing history evolves.

There is a “Publishing history” button on the sidebar, which can be clicked if the published content is selected and the “Changes” mode is active. Clicking this button opens the sidebar panel for accessing the most recently archived versions via the “All content” tab (the working copy with the striped background is the currently published content). Hovering over an item on the panel causes an “Open” button to show up that lets you create a working copy from the corresponding archived published version.

There are many and varied possible uses of the publishing history of which the particularly beneficial ones are outlined below.

Getting an overview of recent changes

Are you curious as to how your website has evolved while you were out? No problem, the publishing history lets you review all the changes that were made starting at a specific point in time.

First, as shown above, open the history panel and select the formerly published version to use as the point of reference. Click “Open” to have a working copy created from this version.

Then open the changes list of the new working copy to see which pages, images, etc. have been added, altered, or deleted.

You can now pick an item you are interested in to view it in detail. Use the “Changes” view mode to visualize the differences between this former page and the currently published version.

Returning to the last known good content

Mistakes are bound to happen – with Scrivito, you can undo them as long as they weren’t made too long ago.

What if your new workmate has “improved” half a dozen of often-visited pages by replacing your lean illustrations with “really convincing stuff”? Haven’t you two agreed on having extensive changes reviewed prior to publishing them? Well, next time you’ll probably point this out more clearly.

For now, let’s roll back to the published content visible before this happened:

Open the publishing history and select from it the version that was published immediately before the first unwanted “improvement”.

Click the “Open” button of this history item to have a new working copy created in which the changes published since then are reverted. For safety, check the changes list of the new working copy to make sure that you’re not undoing more than is required.

Then, publish the working copy to return to this “last known good” state of your website content. If your Scrivito CMS has workflows enabled, the changes first need to be moved to a different working copy (see below) which can then be published.

That was it! You could even roll back the rollback, but that’s a different story.

Selectively amending published changes

After working on large amounts of content and publishing the working copy, it might occur to you that you simply forgot to revert a few changes that have become obsolete in this process. So, how do you restore just a small number of pages, images, etc. from a previously published version to which hundreds of proper changes were made? Well, move the pages to restore to a different working copy!

So, again, first choose the relevant published version from the publishing history to have a fresh working copy created from it.

Then, open the changes list and click “Move changes”. The items on the changes list now have checkboxes, and you can select the individual CMS objects you wish to restore.

Afterwards, click “Select target working copy”. This opens a dialog box for choosing an existing or creating a new working copy. Do either of this to have your selected objects moved to the target working copy. (Note that the dialog includes a workflow selection dropdown if workflows have been made available in your Scrivito CMS.)

You can now switch to this working copy and publish it right away, or review the changes, edit them, etc. and publish it afterwards. Finally, you may want to delete the source working copy that was created via the publishing history.

Requirements and limitations

There aren’t many of them, but it’s important to know them. First, if the maximum number of working copies your plan includes has been reached, you won’t be able to utilize any of the archived versions of your published content simply because a fresh working copy is required for this.

Second, the maximum number of archived versions presented to you depends, again, on the plan. So, with a small plan, if you’re publishing frequently, archived versions may quickly disappear from your version history window.