Hello Benjamin!
I describe the problem at the end of this message. Here is half of the problem solved:
On the file bootstrap_package/Classes/ViewHelpers/DataRelationViewHelper.php is missing one function. The original code near to line 58 (version 6.2.4) was:
foreach ($data as $record) {
$items[] = $GLOBALS['TSFE']->sys_page->getRecordOverlay($table, $record, $GLOBALS['TSFE']->sys_language_uid);
}
I added a function from Workspaces recommendation's(1) page:
foreach ($data as $record) {
$GLOBALS['TSFE']->sys_page->versionOL($table,$record);
$items[] = $GLOBALS['TSFE']->sys_page->getRecordOverlay($table, $record, $GLOBALS['TSFE']->sys_language_uid);
}
Now its showing properly the changes on Workspaces, but the problem of the history changes if I want to "undo/redo last changes", even when I'm not on workspaces mode, they don't show. So the problem is related to a versioning functionality I guess.
I posted the problem in this forum but I'll paste it here as well:
http://forum.typo3.org/index.php/m/717138/
After installing Typo3 6.2 Bootstrap Introduction package, I was testing the workspaces and record history changes for the custom elements: Carousel, Accordion, and Icons, and they don't work properly.
Some changes I do while on workspace mode don't show on the preview mode. After publishing the changes to live, they show properly.
Carousel Element: When creating new record and adding background images, they don't show on preview mode. Only after putting it live.
Accordion: When moving the items order, the change is not saved at all while on workspaces mode. Changing the order of the items while on live editing mode works. Also any text added to the item is not shown on workspaces mode, only after putting it live.
All custom elements: When checking the record history (undo/redo last change) of the custom element, changes made on Bootstrap records are not listed.
I saw that in any file of the bootstrap introduction package the "Programming with workspaces in mind" (1) was applied. At least I searched in the source code that none of the functions referenced there are applied to the bootstrap package extension.
I would like to implement workspaces for the bootstrap package but I'm still a beginner on Typo3 development. Any help or easy fix for this problems?
Thanks for you help!
1 - docs.typo3.org/typo3cms/CoreApiReference/6.2/ApiOverview/Workspaces/Index.html