Rescue a layout broken by an import
Undo an import that went wrong.
Life cycle: Migrate, example 26 of 34. Worked out on the Fit & Healthy site of Exponential 6.0.15+.
Contents
In the Layouts editor
- If the import only made drafts (no
--publish), Discard them in the editor.
On the command line
./console exp:layouts import before-import.zip --dry-run --strategy=overwrite --publishand read the States (new,identical,changed,conflicting).- Run it again without
--dry-run, with the--strategyyou chose and--publishif the result should be live at once. - Nothing to clear by hand: since explayouts_core 1.0.10 an import with
--publishpurges the page cache itself.
Which to choose
Always export before importing.
Check
- The layout is as before the import.
Related pages
- Roll a layout back
- Migrate examples, every page
- 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.