Actions
Bug #91669
closedWrong documentation / get versioningWorkspaceId in frontend
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Documentation
Target version:
-
Start date:
2020-06-17
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
7.2
Tags:
pending-close
Complexity:
Is Regression:
Sprint Focus:
Description
https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/Workspaces/Index.html
If you need to detect preview mode for versioning and workspaces you can read this variable:
$GLOBALS['TSFE']->sys_page->versioningWorkspaceId: Will tell you the id of the workspace of the current backend user. Used for preview of workspaces.
Is wrong (for TYPO3 10):
*Cannot access protected property TYPO3\CMS\Core\Domain\Repository\PageRepository::$versioningWorkspaceId
*
Actions