T3DD10 Workspace Extension API

Use workspace in FE
To enable workspaces for your extension you have to collect the record-data like this:

Get the record Data

Get the Version/Workspace Overlay
$GLOBALS['TSFE']->sys_page->versionOL($this->database_table, $return_data);     

Do the lokalization
$return_data=$GLOBALS['TSFE']->sys_page->getRecordOverlay($this->database_table,$return_data,$lang_uid,$this->translationMode); 

The getRecordOverlay combines the localization and the workspace/record overlay for the localized record

Current Backend-Problems for Extensions

Preview of records
The preview of records is currently not possible, since all preview methods are only working for pages and contents. The next steps are to enable the backend modules to have a preview for records.
For configuring the previewPID for each record-type a feature request for the current core is already issued under the [[#14983 http://bugs.typo3.org/view.php?id=14983]]. The goal is to use this ID for every preview, including the workspaces backend.
In detail the preview should be enabled in:
  • Workspaces module - next to each changed record and context-menu for each record
  • Versioning module - next to each changed record and context-menu for each record
  • Editing records in the workspace