Theme settings
Themes in Jadu Central can have multiple configuration settings defined in the settings section of the theme.yml
file. Supported setting types include:
- Text fields (text)
- Dropdown select boxes (select)
- File uploads (file)
- Multi-line text areas (textarea)
- Image uploads (image)
- Radio button groups (radio)
- On/off toggles (toggle)
Defining settings in theme.yml
allows each theme to be customisable through the Jadu Central administrative interface. The different field types provide flexibility in the kinds of options that can be configured on a per-theme basis.
Text
Attributes | Description | Mandatory |
---|---|---|
label | The label to be displayed next to the field | yes |
required | Whether the field is required | no |
default-value | The default value of the field | no |
notes | Help text provided for the field | no |
Select
Attributes | Description | Mandatory |
---|---|---|
label | The label to be displayed next to the field | yes |
required | Whether the field is required | no |
options | An array of options, each with a label and value | yes |
notes | Help text provided for the field | no |
Options should be provided in the following format:
Example:
options:
blue:
label: Education (Blue)
value: school-blue
green:
label: Education (Green)
value: school-green
File
Attributes | Description | Mandatory |
---|---|---|
label | The label to be displayed next to the field | yes |
required | Whether the field is required | no |
notes | Help text provided for the field | no |
Textarea
Attributes | Description | Mandatory |
---|---|---|
label | The label to be displayed next to the field | yes |
required | Whether the field is required | no |
notes | Help text provided for the field | no |
## Image
Attributes | Description | Mandatory |
---|---|---|
label | The label to be displayed next to the field | yes |
required | Whether the field is required | no |
notes | Help text provided for the field | no |
## Radio
Attributes | Description | Mandatory |
---|---|---|
label | The label to be displayed next to the field | yes |
options | An array of options, each with a label and value | yes |
notes | Help text provided for the field | no |
default-value | The default value of the field | no |
Options should be provided in the following format:
Example:
options:
blue:
label: Education (Blue)
value: school-blue
green:
label: Education (Green)
value: school-green
Toggle
Attributes | Description | Mandatory |
---|---|---|
label | The label to be displayed next to the field | yes |
notes | Help text provided for the field | no |
default-value | The default value of the field | no |