Skip to the content
Documentation

Autosave

No ratings yet

Autosave stores the draft of the object you are editing automatically, so a closed browser or a lost connection does not lose the work. It is the ezautosave extension, which a new Exponential 6 installation installs with Composer and activates for every site.

What it does

  • Saves the draft every Interval seconds.
  • Saves it when you leave a form field you changed (TrackUserInput).
  • Hides the Store draft button, which is no longer needed (HideStoreDraftButton).
  • Tries to save when the editor leaves the edit page unexpectedly (back button, closing the tab).
  • Adds a preview of the draft to the edit page of the administration; the preview link can be hidden (HidePreviewLink). Links followed from the preview lead to the live site.

Since Exponential 6.0.6 the administration's autosave and preview run on the jQuery-based Exponential UI (Exp.autosave.AutoSubmit, Exp.autosave.Preview); the YUI version is gone.

Settings

Override in settings/override/autosave.ini.append.php. The shipped values:

[AutosaveSettings]
# seconds between two automatic saves
Interval=180
# also save when the user leaves a field that changed
TrackUserInput=enabled
HideStoreDraftButton=enabled
HidePreviewLink=disabled

[BrowserWorkarounds]
# Internet Explorer versions in which autosave is off when the form has a password field
IEDisableWithPassword[]
IEDisableWithPassword[]=11

Limits

  • Autosave saves a draft; it never publishes.
  • In Internet Explorer 11 it is switched off on forms with a password field ([BrowserWorkarounds]).

Related pages

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.