Issue Bug Closed

#91669Wrong documentation / get versioningWorkspaceId in frontend

This Mächler 06/17/20, 18:39 updated 09/29/20, 15:07

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
*

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.