Project

General

Profile

Actions

Bug #97626

closed

Doktype Limitation in ElementBrowserPageTreeView.php

Added by Thomas Rawiel about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2022-05-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

From the documentation:
"In TYPO3 versions below 10.4, the doktype was restricted to numbers smaller than 200 if the custom page type should be displayed in the frontend, and larger than 200 when it is just some storage. This limitation no longer exists, so you can choose a number at will."
https://docs.typo3.org/m/typo3/reference-coreapi/10.4/en-us/ApiOverview/PageTypes/Index.html?highlight=page%20types

But:
When adding a custom doktype >= (int)200 the user can't set links to these pages via the link browser.

In typo3/sysext/backend/Classes/Tree/View/ElementBrowserPageTreeView.php
the function ext_isLinkable returns false if the doktype is > PageRepository::DOKTYPE_SPACER (199)

public function ext_isLinkable($doktype, $uid)
{
    return $uid && $doktype < PageRepository::DOKTYPE_SPACER;
}

TYPO3 10.4.28

The method is absolutly the same on current main (so v11 also).


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Feature #97898: Configure linkable page typesUnder ReviewFrank Nägler2022-07-11

Actions
Actions

Also available in: Atom PDF