Commit 8fe33996 authored by Wouter Wolters's avatar Wouter Wolters Committed by Frank Nägler
Browse files

[BUGFIX] Allow opening custom doktype in the frontend

A few doktype are checked now to open the frontend page.
Others will redirect to the homepage. Allow custom doktypes now
too with opening the frontend page.

Resolves: #75499
Resolves: #70094
Releases: master,7.6
Change-Id: Iaffe03dfff3f1181f26964f26611d80e71406b5c

Tested-by: Riccardo De Contardi's avatarRiccardo De Contardi <>
Reviewed-by: default avatarZbigniew Jacko <>
Tested-by: default avatarZbigniew Jacko <>
Tested-by: Marcin Krzyżanowski
Reviewed-by: Frank Nägler's avatarFrank Naegler <>
Tested-by: Frank Nägler's avatarFrank Naegler <>
parent 9a06890d
......@@ -851,11 +851,9 @@ class EditDocumentController extends AbstractModule
$rootPageData = null;
$rootLine = BackendUtility::BEgetRootLine($currentPageId);
$currentPage = reset($rootLine);
if ((int)$currentPage['doktype'] === PageRepository::DOKTYPE_DEFAULT
|| (int)$currentPage['doktype'] === PageRepository::DOKTYPE_LINK
|| (int)$currentPage['doktype'] === PageRepository::DOKTYPE_SHORTCUT
|| (int)$currentPage['doktype'] === PageRepository::DOKTYPE_MOUNTPOINT
) {
// Allow all doktypes below 200
// This makes custom doktype work as well with opening a frontend page.
if ((int)$currentPage['doktype'] <= PageRepository::DOKTYPE_SPACER) {
// try the current page
$previewPageId = $currentPageId;
} else {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment