Custom config section

It appears that it’s not possible to add a custom configuration section to config.toml or a custom file in a configuration directory containing settings for something. My idea is to have configuration parameters in a special group of settings.

Having a config directory looks good, but is it possible to do something like config/_defaults/params.mysection.toml for subsections? Would it be possible to make “non-param” sections available somehow in templates?

The specific use-case is a theme that defines default configuration settings via a dedicated configuration (in config/_defaults/theme.toml) that can be overwritten via other config subfolders.

It’s very abstract in my brain right now. How do you add defaults without adding them to the layout files? This is about “reuse” of layout files without those defaults hard coded into.

You could try use data files?

1 Like