Bug #97626
closedDoktype Limitation in ElementBrowserPageTreeView.php
100%
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).
Updated by Frank Nägler over 2 years ago
- Status changed from New to Accepted
- Assignee set to Frank Nägler
Updated by Gerrit Code Review over 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
Updated by Frank Nägler over 2 years ago
- Related to Feature #97898: Configure linkable page types added
Updated by Gerrit Code Review over 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
Updated by Gerrit Code Review over 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
Updated by Gerrit Code Review over 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
Updated by Frank Nägler over 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset f9636a912024b2e39a58149e7cd963141ea746cd.