[TYPO3-core] RFC: #14097: Preview in BE opens Workspace-preview

Steffen Kamper info at sk-typo3.de
Wed Apr 14 00:29:21 CEST 2010


Hi,

This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=14097

Branch: Trunk

There was a long settings for years:
window.open(top.WorkspaceFrontendPreviewEnabled?'" .
- $urlPreviewDisabled . "':'" . $urlPreviewEnabled

you see that it's turned around.

But reference is wrong too. The value resides in
TYPO3.configuration.workspaceFrontendPreviewEnabled

But,
1) this is static, it change when you reload backend.php. Menu is 
dynamic, so never fits.
2) setting is turned around for obvious reasons

Solution: When using workspace selector, change the setting dynamic. Use 
the correct var and the correct comparison.
Splitted in inWorkspace and workspaceFrontendPreviewEnabled, so the 
workspace preview is enabled only if you are in any workspace and have 
the preview enabled.

vg Steffen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 14097.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100414/061112a8/attachment.asc>


More information about the TYPO3-team-core mailing list