Per-site settings in extensions
This page is for administrators and developers of an installation with many sites. Since January 2026 an extension that holds a site can carry override settings that are active only while one of its siteaccesses runs, and clearing the INI cache clears it for every project (Per-site settings inside extensions).
Contents
Layout of a site extension
extension/site_dept_example/
settings/override/site.ini.append.php settings for all siteaccesses of this site
settings/siteaccess/dept_example/... settings of one siteaccess
design/dept_example/templates/... the design layer
translations/... interface texts (extension named in TranslationExtensions[])Setting it up
- Give the extension a
settings/siteaccess/<siteaccess>/directory for its siteaccess; the new directories are only looked up when it does, so unrelated extensions cost nothing. - Put settings for every siteaccess of the extension in its
settings/override/. - Clear the INI cache:
php bin/php/ezcache.php --clear-tag=ini.
Why this suits departments
- One Git repository per department site, with its own history and reviewers.
- The central settings stay small; a department's change cannot change another's settings.
- Moving a site to another installation means moving its extension and its content.
Translation siteaccesses
A language siteaccess that should look like the department's main site gets
[SiteAccessSettings] ExtensionSettingsSiteAccess=<main siteaccess>
(Extension loading order).
Related pages
- Per-site settings inside extensions
- Adding a department site
- 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.