Fixed bug #13823: Backend not printable if more than one page (thanks to Stefan Geith)
authorXavier Perseguers <typo3@perseguers.ch>
Tue, 16 Mar 2010 20:24:46 +0000 (20:24 +0000)
committerXavier Perseguers <typo3@perseguers.ch>
Tue, 16 Mar 2010 20:24:46 +0000 (20:24 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7121 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/stylesheet_print.css [new file with mode: 0644]
typo3/template.php

index 44d07ff..b121397 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-03-16  Xavier Perseguers  <typo3@perseguers.ch>
 
+       * Fixed bug #13823: Backend not printable if more than one page (thanks to Stefan Geith)
        * Added feature #13825: TypoScript object browser - Show all TS (thanks to Stefan Geith)
 
 2010-03-16  Benjamin Mack  <benni@typo3.org>
diff --git a/typo3/stylesheet_print.css b/typo3/stylesheet_print.css
new file mode 100644 (file)
index 0000000..34c4a16
--- /dev/null
@@ -0,0 +1,16 @@
+/* - - - - - - - - - - - - - - - - - - - - -
+
+Title  : TYPO3 general backend styles for printing
+
+Description :  Stylesheet for the TYPO3 backend when printing.
+                               You can configure another/additional stylesheet for
+                               use by the $TBE_STYLES global var
+
+       $Id$
+
+- - - - - - - - - - - - - - - - - - - - - */
+
+div#typo3-docbody {
+       overflow: visible;
+}
+
index 4c3d5cd..294d7a8 100644 (file)
@@ -193,6 +193,7 @@ class template {
        var $styleSheetFile = 'stylesheet.css'; // Filename of stylesheet (relative to PATH_typo3)
        var $styleSheetFile2 = '';              // Filename of stylesheet #2 - linked to right after the $this->styleSheetFile script (relative to PATH_typo3)
        var $styleSheetFile_post = '';  // Filename of a post-stylesheet - included right after all inline styles.
+       var $styleSheetFile_print = 'stylesheet_print.css';     // Filename of a print-stylesheet - included after all styles.
        var $backGroundImage = '';              // Background image of page (relative to PATH_typo3)
        var $inDocStyles_TBEstyle = ''; // Inline css styling set from TBE_STYLES array
 
@@ -268,6 +269,7 @@ class template {
                if ($TBE_STYLES['stylesheet'])  $this->styleSheetFile = $TBE_STYLES['stylesheet'];
                if ($TBE_STYLES['stylesheet2']) $this->styleSheetFile2 = $TBE_STYLES['stylesheet2'];
                if ($TBE_STYLES['styleSheetFile_post']) $this->styleSheetFile_post = $TBE_STYLES['styleSheetFile_post'];
+               if ($TBE_STYLES['styleSheetFile_print'])        $this->styleSheetFile_print = $TBE_STYLES['styleSheetFile_print'];
                if ($TBE_STYLES['inDocStyles_TBEstyle'])        $this->inDocStyles_TBEstyle = $TBE_STYLES['inDocStyles_TBEstyle'];
 
                        // Stylesheets from skins:
@@ -1029,7 +1031,10 @@ $str.=$this->docBodyTagBegin().
                $this->pageRenderer->addCssInlineBlock('inDocStyles', $inDocStyles . chr(10) . '/*###POSTCSSMARKER###*/');
                if ($this->styleSheetFile_post) {
                        $this->pageRenderer->addCssFile($this->backPath . $this->styleSheetFile_post);
-       }
+               }
+               if ($this->styleSheetFile_print) {
+                       $this->pageRenderer->addCssFile($this->backPath . $this->styleSheetFile_print, 'stylesheet', 'print');
+               }
 
        }