Site Settings
Icons are defined on a per-page basis and are specified in the site settings.
Configuration of icon sets
A single icon set uses a provider (e.g. Icomoon) to make multiple icons available. These icons can then be used in both the backend and frontend.
Multiple icon sets from different providers can be used per site.
icons:
sets:
-
provider: icomoon
group: icomoon
options:
json: 'EXT:my_ext/Resources/Private/Fonts/Icomoon/selection.json'
fonts: 'EXT:my_ext/Resources/Public/Fonts/Icomoon/'
The following settings are available for a single icon set.
provider
-
- Type
- string
- Path
- icons.sets.<index>.provider
The name of the provider to be used.
Either a predefined abbreviation (e.g. “icomoon”) or the full class name.
config/sites/<my_site>/settings.yaml|typo3conf/sites/<my_site>/settings.yamlicons: sets: - provider: Vendor\MyExt\Imaging\IconSet\CustomIconSetProviderCopied!
group
-
- Type
- string
- Path
- icons.sets.<index>.group
Assigns the icon set to a group in the backend select fields.
config/sites/<my_site>/settings.yaml|typo3conf/sites/<my_site>/settings.yamlicons: sets: - provider: Vendor\MyExt\Imaging\IconSet\CustomIconSetProvider group: web_iconsCopied!
options
-
- Type
- array
- Path
- icons.sets.<index>.options
Configures the respective icon set provider. (See Icon provider options)
Icon provider options
Each icon set provider uses different options to make icons available.
The extension comes with a provider for integrating Icomoon icons, but can be expanded to include additional providers.
Icomoon
json
-
- Type
- string
- Path
- icons.sets.<index>.options.json
The path to the
selection.file from Icomoon.json Can be specified as either a storage path (
1:/), an extension path (fonts/ icomoon/ selection. json EXT:), or an absolute path (my_ ext/ Resources/ Private/ Fonts/ Icomoon/ selection. json /fonts/).icomoon/ selection. json config/sites/<my_site>/settings.yaml|typo3conf/sites/<my_site>/settings.yamlicons: sets: - provider: icomoon options: json: 'EXT:my_ext/Resources/Private/Fonts/Icomoon/selection.json'Copied!
fonts
-
- Type
- string
- Path
- icons.sets.<index>.options.fonts
The path to the font files.
Can be specified as either a storage path (
1:/), an extension path (fonts/ icomoon/ EXT:), or an absolute path (my_ ext/ Resources/ Public/ Fonts/ Icomoon/ /fonts/).icomoon/ config/sites/<my_site>/settings.yaml|typo3conf/sites/<my_site>/settings.yamlicons: sets: - provider: icomoon options: fonts: '/fonts/icomoon/'Copied!