Bug #91669

Wrong documentation / get versioningWorkspaceId in frontend

Added by This M├Ąchler 28 days ago. Updated 28 days ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
Documentation
Target version:
-
Start date:
2020-06-17
Due date:
% Done:

0%

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 *

History

#1 Updated by Oliver Hader 28 days 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.

#2 Updated by Oliver Hader 28 days ago

  • Target version deleted (9.5.18 & 10.4.3)

Also available in: Atom PDF