Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |
configuration:inheritance [2023/07/18 13:39] – demiankatz | configuration:inheritance [2023/07/18 13:40] (current) – demiankatz |
---|
====== Configuration File Inheritance ====== | ====== Configuration File Inheritance ====== |
| |
VuFind allows a configuration file to inherit settings from a parent configuration. Different configuration file types have slightly different inheritance options as described below. | VuFind® allows a configuration file to inherit settings from a parent configuration. Different configuration file types have slightly different inheritance options as described below. |
| |
===== Inheritance in .ini Files ===== | ===== Inheritance in .ini Files ===== |
==== Merging Sections in .yaml Files ==== | ==== Merging Sections in .yaml Files ==== |
| |
Starting with VuFind 9.0 you can also define sections that should be merged together at the top level or a sub-level by using the `"@merge_sections"` directive. This directive should contain an array of paths, where each path is an array starting from the top level down to the desired level. For example assuming the parent config above and the local config below: | Starting with VuFind® 9.0 you can also define sections that should be merged together at the top level or a sub-level by using the `"@merge_sections"` directive. This directive should contain an array of paths, where each path is an array starting from the top level down to the desired level. For example assuming the parent config above and the local config below: |
| |
<code yaml> | <code yaml> |
===== Inheritance of Entire Configuration Directories ===== | ===== Inheritance of Entire Configuration Directories ===== |
| |
Starting with VuFind 9.1, you can use [[configuration:local_settings_directory#dirlocationsini|DirLocations.ini]] to chain together a series of [[configuration:local_settings_directory|local settings directories]]. This can be useful in combination with file-based inheritance to solve various configuration organization problems. | Starting with VuFind® 9.1, you can use [[configuration:local_settings_directory#dirlocationsini|DirLocations.ini]] to chain together a series of [[configuration:local_settings_directory|local settings directories]]. This can be useful in combination with file-based inheritance to solve various configuration organization problems. |
---- struct data ---- | ---- struct data ---- |
properties.Page Owner : | properties.Page Owner : |
---- | ---- |
| |