allowedTypes

New in version 12.0

Instead of the former exclude list blindLinkOptions of linkPopup.options, the type link uses now include lists. Those lists are furthermore no longer comma separated, but PHP arrays, with each option as a separate value.

The replacement for the previously used blindLinkOptions option is the allowedTypes configuration. The allowedTypes configuration is also evaluated in the DataHandler, preventing the user from adding links of non-allowed types.

To allow all link types, skip the allowedTypes configuration or set it to ['*']. It's not possible to deny all types.

Type
array of keywords
Path
$GLOBALS['TCA'][$table]['columns'][$field]['config']
Scope
Display / Proc.
page
Links to internal pages
url
Links to external pages
file
Links to a file
folder
Links to a folder
email
Creates an email link
telephone
Creates a phone link
record

Enables any record link handler that is defined in the LinkHandler API. To enable only a specific custom LinkHandler, add the defined identifier instead.

// 'record' will match any custom link handler
'allowedTypes' => ['page', 'url', 'record']
Copied!
// 'tx_news' and 'custom_identifier' are both custom link handlers
'allowedTypes' => ['page', 'url', 'tx_news', 'custom_identifier']
Copied!
// Allow all types (or skip this option).
'allowedTypes' => ['*']
Copied!