Project

General

Profile

Actions

Feature #97898

open

Configure linkable page types

Added by Frank Nägler over 2 years ago. Updated over 1 year ago.

Status:
Under Review
Priority:
Should have
Assignee:
Category:
Frontend
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,
    ],
];

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #97626: Doktype Limitation in ElementBrowserPageTreeView.phpClosedFrank Nägler2022-05-13

Actions
Related to TYPO3 Core - Task #101137: [UX] - Remove Doktype 255 (Recycler)Closed2023-06-21

Actions
Actions

Also available in: Atom PDF