Site settings

When an extension features Settings definitions for site settings these can be automatically documented by including the settings definition file. The special syntax PROJECT: can be used to load the file from the directory of the extension instead of the Documentation folder only.

Settings.rst
..  typo3:site-set-settings:: PROJECT:/Configuration/Sets/MySet/settings.definitions.yaml
    :name: my-set
    :type:
    :Label: max=30
    :default: max=10
Copied!
Name Type Label Default
color Background color "#129845"
string Browser-native image lazy load... "lazy"
string List of allowed HTML tags when... "a, abbr, ...
website.background.color
Type
color
Default
"#129845"
Label
Background color

This will validate the given color string

website.image.lazyLoading
Type
string
Default
"lazy"
Label
Browser-native image lazy loading
Enum
{ "lazy": "Lazy", "eager": "Eager", "auto": "Auto" }

Can be "lazy" (browsers could choose to load images later), "eager" (load images right away) or "auto" (browser will determine whether the image should be lazy loaded or not)

website.rte.allowTags
Type
string
Default
"a, abbr, acronym, address, article, aside, b, bdo, big, blockquote, br, caption, center, cite, code, col, colgroup, dd, del, dfn, dl, div, dt, em, figure, font, footer, header, h1, h2, h3, h4, h5, h6, hr, i, img, ins, kbd, label, li, link, meta, nav, ol, p, pre, q, s, samp, sdfield, section, small, span, strike, strong, style, sub, sup, table, thead, tbody, tfoot, td, th, tr, title, tt, u, ul, var"
Label
List of allowed HTML tags when rendering RTE content

The custom parameters :type:, :Label: etc can be used to configure which aspects of the settings should be shown in the overview table.

A :name: can be used to create a namespace when there are several sets. All links to the configuration values will be prefixed then.