Enabling autosave in EE2 BETA

expressionengine, hints

One of the great new features that have been implemented in the EE2 BETA is autosaving. With autosaving enabled and the publish page open, the system will repeatedly save the current post you’re working on, so if the unforgivable happens and you loose your post, you can get it back from the autosave feature. Unfortunately, in 2.0, autosave isn’t enabled by default, but it’s easy enough to do.

There’s a hidden config value that enables autosaving of your posts on the publish page. There are a couple of ways to set it, but you can do it straight from the control panel. First, login to your control panel. Head over to Admin -> System Administration -> Config Editor.

Config Editor

You should then see a list of lots of config values - don’t touch these without knowing exactly what you’re doing because you could easily break EE. Scroll straight to the bottom row where you can enter a custom key. In the first textbox enter autosave_interval_seconds. In the second textbox enter an autosave interval in seconds - I set mine to 300 - about 5 minutes.

Autosave Interval

And there you have it! Autosave will be turned on for any posts you’re editing. If you’re creating a new post, you’ll have to wait for 2.1, or just save your post with the status set to closed, then open it in editing mode. Hope this short trick helped!