Project

General

Profile

Actions

Bug #91669

closed

Wrong documentation / get versioningWorkspaceId in frontend

Added by This Mächler over 4 years ago. Updated about 4 years ago.

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 #1

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.

Actions #2

Updated by Oliver Hader over 4 years ago

  • Target version deleted (9.5.18 & 10.4.3)
Actions #3

Updated by Christian Kuhn over 4 years ago

  • Status changed from Needs Feedback to Resolved
Actions #4

Updated by Benni Mack about 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF