Bug #91669
closedWrong documentation / get versioningWorkspaceId in frontend
0%
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
*
Updated by Oliver Hader over 4 years ago
- Status changed from New to Needs Feedback
- Tags changed from Workspace versioningWorkspaceId Frontend to pending-close
It is possible to possible to propose a change by clicking corresponding "edit on GitHub" button on docs.typo3.org.
Updated by Oliver Hader over 4 years ago
- Target version deleted (
9.5.18 & 10.4.3)
Updated by Christian Kuhn over 4 years ago
- Status changed from Needs Feedback to Resolved
Patch https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-CoreApi/commit/7feef011e81463c7a63f06041f482c8901f8eb1d has been merged to the docs in master & v10 versions to update this.