Use exp:layouts instead of the old helper scripts
Scripts written against the old helpers keep working.
Life cycle: Migrate, example 13 of 34. Worked out on the Fit & Healthy site of Exponential 6.0.15+.
Contents
In the Layouts editor
- Copying a layout by hand in the editor is building it again; the import copy is faster.
On the command line
- Listing:
exp:layouts list. Details:exp:layouts export --only=<identifier>and readlayouts.json. Copying: export andimport --strategy=copy. - Since explayouts 1.4.42 the
ext:explayouts:*helpers run on their own again (-s <siteaccess>picks the siteaccess):./console ext:explayouts:layout_info 2printsID: 2,Identifier: fd0aa7af77a85a03bf1080018f5db1dc,Name: Header / Footer.
Which to choose
exp:layouts for export, import and copies between installations; the helpers for a quick look at one layout, block or collection.
Check
- The scripts run without the old helpers.
Related pages
- Known editor behaviors
- 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.