Lesson 6.1: Publishing, keeping and discarding a draft
Everything learners did so far stayed in drafts. This lesson makes the course layout live, and teaches every way out of the editor, so that nobody publishes by accident and nobody loses a morning's work.
At a glance
| Course | Exponential Layouts |
| Module | Module 6: Drafts and publishing |
| Duration | 45 minutes (15 presenting, 30 exercise) |
| Level | Intermediate |
| Audience | Editors and site builders |
| Prerequisites | Module 5 |
Learning objectives
After this lesson, learners can:
- explain that the editor always works on a draft, saved as they go, and that visitors see only published layouts;
- choose between Publish layout, Publish and continue editing, Save draft and close, Discard and Cancel;
- answer the cache question after publishing;
- continue an existing draft or start a new one when opening a layout.
Trainer's notes
How to present it
Sources: The layouts editor: Publish, keep or throw away and Exponential Layouts: Drafts, publishing and versions.
Drafts (3 minutes). Opening a published layout makes a draft of it. Changes are saved to the draft continuously; there is no separate save step. The site keeps showing the published layout until you publish.
The ways out (5 minutes):
Button What it does Publish layout Publishes the draft and closes the editor; pages that use the layout show it Publish and continue editing (menu with three dots) Publishes and keeps the editor open with a new draft Save draft and close (menu with three dots) Keeps the draft for later; the published layout is unchanged Discard Throws the draft away after Discard changes asks Are you sure you want to discard your changes to the layout draft?; Cancel in that dialog keeps it Cancel Leaves the editor; the draft stays Leaving the page otherwise may ask There could be unsaved changes. Are you sure you want to leave?
Caches (3 minutes). Where a site does not clear its caches by itself after a publish, the editor asks: Automatic cache clear for this site is turned off. Do you want to clear caches after publish? Choose Clear caches so visitors see the change; Do not clear caches leaves cached pages until they expire.
Opening a layout with a draft (2 minutes). When a draft exists, the editor may ask whether to continue it (Edit existing) or start a New draft from the published layout. Drafts belong to the layout, not to a person: someone else's draft is shared work.
Common questions
Does Discard delete the layout? No. It throws away the draft; the published layout stays. A layout that was never published has nothing left to show.
When should I use Publish and continue editing? When a first change must go live now and you continue with more.
Why does the page still look old after Publish layout? Cached pages; or the page is served by another mapping (module 7).
Pitfalls
- Publish layout on a shared layout. It changes every linking page. Check twice (module 5).
- Discard instead of Cancel. Discard throws work away; Cancel keeps the draft. Read the dialog.
- Two people, one layout. One person's Discard throws away the other's changes in the shared draft.
Hands-on exercise
Use the training installation and your course layout (with the blocks of modules 3 to 5).
- Open your course layout with Open. If the editor asks, choose Edit existing to continue your draft.
- Check the blocks: title, image, container with rich text and button, Full view, lists, linked header and footer.
- Press Publish layout. If the editor asks about caches, choose Clear caches.
- Open the layout again. Note whether the editor asks about an existing draft (it should not after publishing).
- Change the title text, open the menu with three dots and choose Publish and continue editing.
- Change the title again, then press Discard. Read Discard changes and press Cancel in the dialog: the draft stays.
- Press Discard again and confirm this time. The editor closes; the published title is the one of step 5.
- Open the layout, add a Spacer block, and choose Save draft and close. Check with Preview on the Layouts list that the published layout has no spacer.
- Open the layout once more, choose Edit existing, delete the spacer, and press Publish layout.
Expected result
- The learner's course layout is published with the step 5 title and no spacer.
- The learner used every way out: publish, publish and continue, discard (cancelled and confirmed), save draft.
- The trainer checks by previewing two learners' layouts on the projector.
Quiz
- What does the site show while you work on a draft?
- Which choice publishes and keeps the editor open? A. Publish layout B. Publish and continue editing C. Save draft and close D. Cancel
- What is the difference between Discard and Cancel?
- The editor asks about clearing caches after publishing. What do you choose, and why?
- True or false: drafts belong to one person, so two people can safely edit the same layout.
Answers
- The published layout (The layouts editor).
- B.
- Discard throws the draft away (after a confirmation); Cancel leaves the editor and keeps the draft.
- Clear caches, so visitors see the change.
- False. Drafts belong to the layout; two people overwrite each other.
Further reading
Related pages
- Module 6: Drafts and publishing
- Exponential Layouts: course overview
- Trainers: start here
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.