[TYPO3-core] RFC: #16133: Feature: introduce new config setting to completely disable the preview info box
Andreas Kiessling
kiessling at pluspol.info
Tue Oct 26 12:30:42 CEST 2010
Hi,
this is an SVN patch request.
Type: Feature
BT reference: http://bugs.typo3.org/view.php?id=16133
Branches: trunk
When you view a page in a workspace, you get that little red box in the
upper right corner, which tells you, that you now see a preview of a
workspace. While you can already customize the box (layout and text),
you can not completely disable it. This does not hurt for regular pages,
but it can really cause headaches,
- when you create an xml based output (you then need to make the box to
be a xml comment)
- or you create a json object, because you need full TSFE for an ajax
request (json does not really accept any comments, so this request will
always fail when there is something after the '}]')
Solution: add a new config option to disable the preview info
TS example:
ajaxPage = PAGE
ajaxPage.typeNum = 57
ajaxPage.config {
disableAllHeaderCode = 1
disablePreviewInfo = 1
additionalHeaders = Content-type:text/x-json
no_cache = 1
xhtml_cleaning = 0
admPanel = 0
}
Note: i also thought about coupling that to the disableAllHeaderCode
setting, since you will very often set these two options together. But
with disableAllHeaderCode you can also create your very own html output,
so i introduced the new setting.
Regards,
Andreas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16133_v1.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101026/b490537b/attachment.asc>
More information about the TYPO3-team-core
mailing list