Move a site's settings into its extension
The menu lists and theme settings live in the design extension's repository.
Life cycle: Migrate, example 8 of 34. Worked out on the Fit & Healthy site of Exponential 6.0.15+.
Contents
In the Layouts editor
Not in the Layouts editor.
With settings
./console exp:ini move menu.ini/SiteInfo siteaccess:site extension:mysite:siteaccess:site --dry-runshows the diff (on the test copy: would move 1 block, 7 variables, 1 file).- Without
--dry-runit moves the block; the tool keeps the move only if the values in effect stay the same (it rolls back otherwise, unless--force).--only=MainMenuID,FooterMenuIDlimits it to some variables. - On the test copy, with
mysitefirst inActiveExtensions[], its siteaccess file was read after the theme's and the header menu list in effect was unchanged after the move.
Which to choose
Version the settings with the templates that read them.
Check
exp:ini where menu.ini/SiteInfo/MainMenuID siteshows the extension's file; the value in effect is unchanged.
Related pages
- exp:ini for site builders
- 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.