Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,155 of 9,155 pages
About the help in other languages
All help pages

Settings files in an extension

How a theme ships settings as .ini.append.php files in its settings/ folder, the file format with its PHP comment guard, which settings belong in a theme, and how to see which file wins.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/designers/extensions/settings-files-in-an-extension.md

On this page

Settings files in an extension

This page is for designers who add settings to a theme. Every active extension's settings/ folder is read by the settings system, after the kernel's defaults and before the installation's own overrides.

The file format

A settings file of an extension is named after the settings file it changes, with .append.php:

<?php /* #?ini charset="utf-8"?

[ExtensionSettings]
DesignExtensions[]=mytheme

*/ ?>
  • The <?php /* ... */ ?> around the settings keeps a web server from showing them as text if someone requests the file directly.
  • #?ini charset="utf-8"? states the encoding. Use UTF-8 for new files.
  • A line Variable[] alone (with nothing after the brackets) empties an array before new entries are added.

Which settings a theme usually ships

FileWhat a theme puts there
design.ini.append.phpDesignExtensions[], its stylesheet and script lists
override.ini.append.phpTemplate override rules (Override basics)
image.ini.append.phpImage aliases the theme's templates use (Image aliases)
site.ini.append.phpOnly what is safe for every siteaccess, for example a template operator's registration
<theme>.iniThe theme's own options (Giving a theme its own settings file)

Where settings win

From weakest to strongest: the kernel's settings/*.ini, siteaccess settings (first those inside extensions, then settings/siteaccess/<siteaccess>/), the active extensions' settings/ (earlier extensions win over later ones), and finally the installation's settings/override/. So a value in your theme's settings/ wins over the same value in a siteaccess; only settings/override/ wins over it. The full list is in Settings override placements.

Step by step: add and check a setting

  1. Create or edit the file in extension/mytheme/settings/.

  2. Clear the INI cache: php bin/php/ezcache.php --clear-tag=ini --allow-root-user.

  3. See every file that sets the variable and the value in effect:

    ./console exp:ini where image.ini/AliasSettings/AliasList --allow-root-user

    Expected: your extension's file among the files, in load order, and the value in effect.

Rules

  • Never put passwords, API keys or tokens into a theme's settings. An extension holding secrets cannot even be exported as a package (The secret check).
  • Never ship settings/override/ in a theme: that folder belongs to the installation.
  • Comment each block: the next maintainer (or you in two years) needs the reason.

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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x