Skip to main content

Work on drafts with Require publishing

The Require publishing setting By default, a template change goes live as soon as you save it. If you’d rather work on a template over several sessions, or check a change before customers see it, turn on Require publishing. Saved changes then stay a draft until you publish them. Customers, exports and prints keep using the published version in the meantime.

Turn on Require publishing

  1. Go to Settings › Documents & printing.
  2. Under Template publishing, turn on Require publishing.
  3. Click Save in the save bar.
The setting applies to all your templates.

What becomes a draft

Saved changes to a template’s content stay a draft: its code or blocks, its watermark and its paper size. Everything on the template’s settings page applies straight away, draft or not: the name, what it renders, the document type, the language, pre-selection, who gets the template and delivery.

Work on a draft

  1. Open the template in the editor and make your changes.
  2. Click Save. The editor shows Draft — unpublished changes.
  3. Keep working and saving as often as you like. When the template has no draft, the editor shows Published.

Publish a draft

  1. Open the template in the editor. With a draft waiting, the editor opens on the draft.
  2. Save any unsaved changes first. Publish is turned off while you have unsaved changes (“Save your changes before publishing.”).
  3. Click Publish. The draft goes live and Foliant shows “Template published”.

Discard a draft

  1. In the editor, next to Draft — unpublished changes, click Discard draft.
  2. In Discard the draft?, click Discard draft to confirm.
The template goes back to its published version. The draft isn’t lost: it stays in the version history, so you can restore it later. See Version history.

Good to know

  • Every save is kept in the template’s version history, whether Require publishing is on or off.
  • Templates made from a design always publish when they save. The design editor saves automatically as you go.
  • If you turn Require publishing off while a template has a draft, the editor opens on what’s live. The draft stays in the history.
  • Restoring an old version with Require publishing on creates a new draft from it. Publish it to make it live.
  • Changing a shared section puts the change in the draft of every template using it. Publish each template to make it live. See Saved blocks and shared sections.