[FEATURE] Add option removePageCss to remove styles set in _CSS_PAGE_STYLE 08/17708/4
authorDan Untenzu <mail@pixelbrackets.de>
Fri, 25 Jan 2013 16:30:58 +0000 (17:30 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Fri, 1 Mar 2013 09:46:04 +0000 (10:46 +0100)
Add the option »removePageCss«, equivalent to »removeDefaultCss«.
This option prevents the output of specific page CSS generated
by extensions like css_styled_content.
Create according entry for t3editor.

Resolves: #37818
Releases: 6.1
Change-Id: Ie1d68bd593b6895ea1fe5328b707f7ba9463ab8c
Reviewed-on: https://review.typo3.org/17708
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Dan Untenzu
Tested-by: Dan Untenzu
Reviewed-by: Matthias Nitsch
Reviewed-by: Christoph Dörfel
Tested-by: Christoph Dörfel
Reviewed-by: Alessandro Bellafronte
Tested-by: Alessandro Bellafronte
Reviewed-by: Mattias Nilsson
Tested-by: Mattias Nilsson
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/frontend/Classes/Page/PageGenerator.php
typo3/sysext/t3editor/res/tsref/tsref.xml

index aed4b1b..078adad 100644 (file)
@@ -430,7 +430,7 @@ class PageGenerator {
                                        if ($iCSScode['_CSS_DEFAULT_STYLE'] && empty($GLOBALS['TSFE']->config['config']['removeDefaultCss'])) {
                                                $temp_styleLines[] = '/* default styles for extension "' . substr($key, 0, -1) . '" */' . LF . $iCSScode['_CSS_DEFAULT_STYLE'];
                                        }
-                                       if ($iCSScode['_CSS_PAGE_STYLE']) {
+                                       if ($iCSScode['_CSS_PAGE_STYLE'] && empty($GLOBALS['TSFE']->config['config']['removePageCss'])) {
                                                $temp_styleLines[] = '/* specific page styles for extension "' . substr($key, 0, -1) . '" */' . LF . implode(LF, $iCSScode['_CSS_PAGE_STYLE']);
                                        }
                                }
@@ -1031,4 +1031,4 @@ class PageGenerator {
 }
 
 
-?>
+?>
\ No newline at end of file
index 5fd7937..e7bb798 100644 (file)
@@ -833,6 +833,10 @@ Keywords are the same as for "xhtml_cleaning", see above.]]></description>
                        <description><![CDATA[Remove CSS generated by _CSS_DEFAULT_STYLE configuration of extensions.]]></description>
                        <default><![CDATA[false]]></default>
                </property>
+               <property name="removePageCss" type="boolean">
+                       <description><![CDATA[Remove CSS generated by _CSS_PAGE_STYLE configuration of extensions.]]></description>
+                       <default><![CDATA[false]]></default>
+               </property>
                <property name="removeDefaultJS" type="string">
                        <description><![CDATA[If set, the default JavaScript in the header will be removed.
 The default JavaScript is the blurLink function and browser detection variables.