Configuration Best Practices
Use a Sitepackage extension
It is generally recommended to use a sitepackage extension to customize a TYPO3 website. The sitepackage contains configuration files for that site.
See the TYPO3 Sitepackage Tutorial on how
to create a sitepackage. We assume here your sitepackage extension has the
key my_
.
The YAML preset files should be kept in folder
EXT:
.
RTE configurations need to be registered in your sitepackages
ext_
:
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['myconfig']
= 'EXT:my_sitepackage/Configuration/RTE/MyConfiguration.yaml';
Note
It is possible but not recommended to define this setting in the projects
system/
or system/
Use TYPO3’s Core Default.yaml as boilerplate
It is recommended to start by copying the file
typo3/
into your
sitepackage to the file
EXT:
.
Check TYPO3's Core Full.yaml to gain insight into a more extensive configuration
This preset shows more configured options and plugins. It is not intended for real use. It acts as an example.
typo3/
Use Core includes
It is recommended to use the following includes at the top of your custom configuration:
imports:
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Processing.yaml" }
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Base.yaml" }
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Plugins.yaml" }
If you started out by copying this extensions Default.yaml as boilerplate the imports should already be there.
The include files are already split up so the processing transformations can just be included or even completely disabled (by removing the line for importing).
Please be aware that removing the Processing.
removes
security measures. In that case you have to take care of keeping the ckeditor
safe yourself.