Move only some layouts
Move the new campaign layouts, nothing else.
Life cycle: Migrate, example 2 of 34. Worked out on the Fit & Healthy site of Exponential 6.0.15+.
Contents
In the Layouts editor
- Or tick the layouts in Layouts > Export.
On the command line
./console exp:layouts export --only=spring_campaign --output=campaign.zip(the shared layouts it links to are always included; add more with--shared=)../console exp:layouts import campaign.zip --dry-runand 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
Small exports are easier to review in the dry run.
Check
- The dry run lists the campaign layout and Header / Footer.
Related pages
- Export and import layouts
- 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.