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
- Select the modern or classic theme.
- 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
This is not a bug, but intended behaviour for 1.5.0 (1.3.5 was different and inconsistent within different themes). The page CONTENT is what you input in the editor and exactly this is shown in the content area when you view or print the page. So if you want to have a nice h1 somewhere above the rest of the content, you have to USE a = what ever = CONTENT line at top of your other content. The page NAME is metadata about the page. For screen display, we display it in the header area (like other non-content stuff as interwiki name, trail, user login name etc.). For print, it is shown above the page in a rather small font to give a hint about what you printed (where to find it), but it is not considered CONTENT. If you have some patch complying with this intended behaviour and improving how print looks, make a feature request page.
Plan
- Priority:
- Assigned to:
- Status: