[TYPO3-core] RFC: #16133: Feature: introduce new config setting to completely disable the preview info box
Susanne Moog
typo3 at susannemoog.de
Mon Nov 1 19:47:05 CET 2010
On 26.10.2010 12:30, Andreas Kiessling wrote:
> 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.
+1 by reading and testing.
Note: If you introduce new options that have to be documented you have
to supply the corresponding documentation.
In this case:
TSRef - section "CONFIG"
Property: disablePreviewInfo
Data type: boolean
Description: Disables the "preview" info window completely
default:
After the patch gets committed, this will be added to the "pending
documentation" page in the wiki
(http://wiki.typo3.org/Pending_Documentation)
Thanks,
Susanne
More information about the TYPO3-team-core
mailing list