Page TSConfig Setup
Configuration of page TSConfig settings for image handling, upload folders, and permissions.
Important
Page TSConfig from the Site Set
The Site Set netresearch/ ships page TSconfig
(Configuration/) that sets:
- ✅ Magic image dimensions (maxWidth: 1920, maxHeight: 9999)
- ✅ RTE preset
RTE.default. preset = rte With Images - ✅ Processing mode
RTE.default. proc. overrule Mode := add To List (default)
Without the Site Set, none of this page TSconfig is loaded. Add the lines above to your own page TSconfig.
Note
Frontend TypoScript: the Site Set imports it. Its setup file
recommends to also include it in the sys_ record when it must
load after Bootstrap Package. Without the Site Set, include it yourself.
See Frontend Rendering.
This section is for advanced users who need to customize these defaults or add field-specific configurations.
Table of Contents
Page TSConfig
Page TSConfig configuration in the TYPO3 backend
Magic Image Configuration
Configure maximum image dimensions for automatic image processing:
-
- type
-
integer
- Default
-
1920
Maximum width in pixels for images inserted through the RTE.
When an editor selects an image, the image dialog suggests display dimensions that fit within this limit, keeping the aspect ratio. If the option is not set, the extension falls back to 1920.
-
- type
-
integer
- Default
-
9999
Maximum height in pixels for images inserted through the RTE.
When an editor selects an image, the image dialog suggests display dimensions that fit within this limit, keeping the aspect ratio. If the option is not set, the extension falls back to 9999.
Note
The extension reads these options only from
RTE.<name>., where <name> is the
field's TCA richtext (default if none is set).
Values under RTE. are not read.
Example:
RTE.default.buttons.image.options.magic {
maxWidth = 1920
maxHeight = 9999
}
Warning
Due to TYPO3 bug #87068, you may need to add these settings to root page config instead of custom template extensions.
Processing Modes
RTE.default.proc.overruleMode := addToList(default)
Upload Folder Configuration
The extension has no upload folder option of its own.
The image browser and the external image import use the TYPO3 core
default upload folder, which core resolves from the user TSconfig option
options. (see
File Mounts).
The extension passes no page ID to the resolver, so
options. in page TSconfig is not used.
Content Element Configuration
Enable for Specific Content Types
# Use a specific preset for tt_content bodytext
RTE.config.tt_content.bodytext {
preset = rteWithImages
}
Note
buttons. is not read under RTE..
Set the magic image dimensions under RTE.<name>, where <name> is the
field's richtext (RTE. if none is set; see above).
Disable for Specific Fields
# Disable RTE entirely for specific field
RTE.config.tt_content.header.disabled = 1
Backend User Permissions
File Mounts
Ensure backend users have appropriate file mounts:
options.defaultUploadFolder = 1:user_uploads/rte/
Access Restrictions
# Allow only specific file extensions
options.file_list.validFileExtensions = jpg,jpeg,png,gif,webp
Multi-Language Configuration
Language-Specific Presets
[siteLanguage("locale") == "de_DE"]
RTE.default.preset = german
[END]
[siteLanguage("locale") == "en_US"]
RTE.default.preset = english
[END]
Troubleshooting Configuration
Debug RTE Configuration
Enable RTE debugging:
RTE.default.showButtons = *
RTE.default.hideButtons =
Verify Configuration Loading
Check active RTE configuration in backend:
- Edit content element
- Open the backend module Page TSconfig, select the page and
check the active
RTE.tree
Configuration Priority
Configuration precedence (highest to lowest):
- Field-specific config:
RTE.config. tt_ content. bodytext - Type-specific config:
RTE.config. tt_ content - Default config:
RTE.default - Extension defaults