Actions
Feature #97898
openConfigure linkable page types
Status:
Under Review
Priority:
Should have
Assignee:
Category:
Frontend
Target version:
Start date:
2022-07-11
Due date:
% Done:
0%
Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
Since TYPO3 10.4 the doktype is not limited to any range of numbers.
With #97626 we fixed the an issue ElementBrowserPageTreeView:: ext_isLinkable()
The behavior should not be hardcoded in the function but configurable in $GLOBALS['PAGES_TYPES'] to define which page type can be linked in frontend.
Example:
$GLOBALS['PAGES_TYPES'] = [
(string)PageRepository::DOKTYPE_BE_USER_SECTION => [
'allowedTables' => '*',
],
(string)PageRepository::DOKTYPE_SYSFOLDER => [
// Doktype 254 is a 'Folder' - a general purpose storage folder for whatever you like.
// In CMS context it's NOT a viewable page. Can contain any element.
'allowedTables' => '*',
'isLinkable' => false,
],
(string)PageRepository::DOKTYPE_RECYCLER => [
// Doktype 255 is a recycle-bin.
'allowedTables' => '*',
'isLinkable' => false,
],
'default' => [
'allowedTables' => 'pages,sys_category,sys_file_reference,sys_file_collection',
'onlyAllowedTables' => false,
'isLinkable' => true,
],
];
Actions