Project

General

Profile

Actions

Bug #97626

closed

Doktype Limitation in ElementBrowserPageTreeView.php

Added by Thomas Rawiel about 2 years ago. Updated over 1 year 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 #1

Updated by Thomas Rawiel about 2 years ago

  • Description updated (diff)
Actions #2

Updated by Frank Nägler almost 2 years ago

  • Status changed from New to Accepted
  • Assignee set to Frank Nägler
Actions #3

Updated by Gerrit Code Review almost 2 years ago

  • Status changed from Accepted 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/+/75105

Actions #4

Updated by Frank Nägler almost 2 years ago

Actions #5

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/+/75105

Actions #6

Updated by Gerrit Code Review almost 2 years ago

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

Actions #7

Updated by Gerrit Code Review almost 2 years ago

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

Actions #8

Updated by Frank Nägler almost 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #9

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF