Skip to content
Snippets Groups Projects
Commit cff582b2 authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[TASK] Consider subtype definition for sub schemata

In case a sub schema, e.g. `tt_content.list` makes
use of the "subtypes" feature by defining the
"subtype_value_field", corresponding configuration
("subtypes_addlist" and "subtypes_excludelist") is
now evaluated in the TCA schema and added as further
schema (third level) to the corresponding sub
schema (second level).

This will therefore look like the following:

Schema "tt_content"
    -> Sub Schema "list"
        -> Subtype Schema "tx_blog_pi1"

Via the "subtypes" feature it's only
possible to add or remove existing fields
from the corresponding sub schema.

Also note that the subtype schemata can only
be accessed using the getSubSchema() and
getSubSchemata() methods on a sub schema.
This means calling `$schemaFactory->getSchema('tt_content.list.tx_blog_pi1')`
does not work intentionally!

Resolves: #104929
Releases: main
Change-Id: I10428e1129d5d23acce91cd7756f4f255a45c29b
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/86043


Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarJochen Roth <rothjochen@gmail.com>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarFrank Nägler <frank.naegler@typo3.com>
Reviewed-by: default avatarJochen Roth <rothjochen@gmail.com>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarFrank Nägler <frank.naegler@typo3.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
parent 33700237
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment