[multicolumn.zip]
I'm in the process of migrating content elements from EXT:mask to EXT:content_blocks because mask will be obsolete with TYPO3 14, and ran into an error/bug with content_defender.
I ran the migration script from nhovratov/mask-to-content-blocks to create the necessary files for all mask elements. After some minor tweaks the migrated content blocks usually work without any issues.
One of my content_blocks content elements has a "collection" ("repeating>content" in the mask GUI) where you can add multiple other content elements of certain types.
You can define a list of allowed record types in the config.yaml of the content block:
fields:
-
type: Collection
identifier: tx_mask_multicolumn_1
...
allowedRecordTypes:
- text
- textpic
- header
- image
- uploads
- shortcut
If an editor tries to add some content elements other than text or header, an error from content_defender is shown:
1: The record "" couldn't be saved due to disallowed value(s).
I'm not sure why text or header is possible, while the other record types are not. All types are in the content_defender TS config:
...
allowed {
CType = header, text, textpic, image, table, uploads, shortcut, list, div, html, form_formframework
}
...
For some reason content_defender interferes with content elements inside content_block content elements.
This didn't happen while using mask, because content_defender is only used for backend layouts (as far as I know).
Once content_defender is uninstalled, creating new uploads or image content elements inside the content block works again.
I'll attach the files of my content block, hopefully you can reproduce the error.:
(https://github.com/user-attachments/files/26140215/multicolumn.zip)
[multicolumn.zip]
I'm in the process of migrating content elements from EXT:mask to EXT:content_blocks because mask will be obsolete with TYPO3 14, and ran into an error/bug with content_defender.
I ran the migration script from nhovratov/mask-to-content-blocks to create the necessary files for all mask elements. After some minor tweaks the migrated content blocks usually work without any issues.
One of my content_blocks content elements has a "collection" ("repeating>content" in the mask GUI) where you can add multiple other content elements of certain types.
You can define a list of allowed record types in the config.yaml of the content block:
If an editor tries to add some content elements other than
textorheader, an error from content_defender is shown:I'm not sure why
textorheaderis possible, while the other record types are not. All types are in the content_defender TS config:For some reason content_defender interferes with content elements inside content_block content elements.
This didn't happen while using mask, because content_defender is only used for backend layouts (as far as I know).
Once content_defender is uninstalled, creating new uploads or image content elements inside the content block works again.
I'll attach the files of my content block, hopefully you can reproduce the error.:
(https://github.com/user-attachments/files/26140215/multicolumn.zip)