Description

The page name as displayed in the header region on the screen is not shown when printed. If the page name is not also repeated in the contents as a =header=, then the print output has no identifying headline. This is because of the CSS style sheets.

Steps to reproduce

  1. Select the modern or classic theme.
  2. Do a Print Preview in a browser.

Example

Details

MoinMoin Version

1.5.0

Browser

Firefox 1.0.7

OS and Version

Linux (Fedora3)

Python Version

2.3

Server Setup

Apache2 with mod_python

Server Details

Linux

Workaround

If you want the page name to appear when you print the page, you can alter the stylesheets. Specifically for the themes delivered, look at the css/print.css file.

The whole header region is placed in an HTML <div> with an id of header. In the css files you'll see something equivalent to:

  @media print {
    #header {display:none}
  }

To get it to print, you basically need to re-enable the display of the header div, and then selectively disable on most of it's contents. This set of diffs (against modern/css/print.css) seems to come close to solving this but is not perfect:

--- modern/css/print.css.orig      2005-10-31 14:35:36.000000000 -0500
+++ modern/css/print.css   2006-01-12 16:44:48.000000000 -0500
@@ -43,10 +43,12 @@

 /* user interface styles */

-#header, #sidebar, #footer, #timings, #credits {
+#sidebar, #footer, #timings, #credits {
        display: none;
 }
-
+#logo, #searchform, #username, #pagetrail, #navibar { display:none; }
+.actionsmenu, .editbar { display:none; }
+#header #pagelocation { display: block; color:black; font-size:18pt; }
 #interwiki {
     float: left;
     margin: 0;

Discussion

This css hackery is ugly. Probably the page name should be repeated a second time in its own new top-level <div> immediately after the header div.

Then the display property on that div is set to none in the common.css, and only enabled to block in the print.css. -- DeronMeranda 2006-01-12 21:55:59

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/PageTitleNotDisplayedInPrintOutput (last edited 2007-10-29 19:05:59 by localhost)