Feature: #108557 - TCA option allowedRecordTypes for Page Types
See forge#108557
Description
A new TCA option
allowed is introduced for Page Types to
configure allowed database tables for specific types ("doktype").
// Allow any record on that Page Type.
$GLOBALS['TCA']['pages']['types']['116']['allowedRecordTypes'] = ['*'];
// Only allow specific tables on that Page Type.
$GLOBALS['TCA']['pages']['types']['116']['allowedRecordTypes'] = ['tt_content', 'my_custom_record'];
The array can contain a list of table names or a single entry with an asterisk *
to allow all types.
Per default only the tables pages, sys_, sys_ and
sys_ are allowed, if not overridden with this option.
The defaults are extended, if TCA tables enable the option
ctrl.. Again, this won't be considered if
allowed is set. They need to be configured there as well.
Impact
The allowed record types for pages can now be configured in TCA. This
centralizes the configuration for Page Types and further slims down
the need for ext_, which was utilized before.