Project

General

Profile

Actions

Feature #97898

open

Configure linkable page types

Added by Frank Nägler almost 2 years ago. Updated about 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 #1

Updated by Frank Nägler almost 2 years ago

  • Related to Bug #97626: Doktype Limitation in ElementBrowserPageTreeView.php added
Actions #2

Updated by Gerrit Code Review almost 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75108

Actions #3

Updated by Gerrit Code Review almost 2 years ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75108

Actions #4

Updated by Gerrit Code Review almost 2 years ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75108

Actions #5

Updated by Gerrit Code Review almost 2 years ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75108

Actions #6

Updated by Gerrit Code Review about 1 year ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75108

Actions #7

Updated by Gerrit Code Review about 1 year ago

Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75108

Actions #8

Updated by Gerrit Code Review about 1 year ago

Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75108

Actions #9

Updated by Riccardo De Contardi 11 months ago

  • Related to Task #101137: [UX] - Remove Doktype 255 (Recycler) added
Actions

Also available in: Atom PDF