Issue Details (XML | Word | Printable)

Key: MDLSITE-625
Type: Task Task
Status: Open Open
Priority: Minor Minor
Assignee: Martin Dougiamas
Reporter: Ralf Hilgenstock
Votes: 0
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle Community Sites

Printing new theme

Created: 12/Jan/09 03:31 PM   Updated: 12/Jan/09 07:55 PM
Component/s: moodle.org

Participants: Helen Foster, Martin Dougiamas, Mauno Korpelainen and Ralf Hilgenstock
Security Level: None


 Description  « Hide
If you print pages from the new theme you are running in two problems:

_ The whole horizontal menu is printed over more than one page
_ Personal profile pictures are not printed.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Helen Foster added a comment - 12/Jan/09 05:36 PM
Ralf, thanks for reporting this issue. Reassigning to Martin...

Mauno Korpelainen added a comment - 12/Jan/09 07:46 PM
<link rel="stylesheet" type="text/css" media="print" href="<?php echo $CFG->themewww .'/'. current_theme() ?>/styles_print.css" />

should do the trick to hide menu from printed pages.

Then create styles_print.css that sets display: none on any elements that you don't want to print:

#moodlemenu {
display: none;
}

or for example some additional tags

#header, #footer, .navbar, #left-column, #right-column {
display: none;
}

  • {
    float: none;
    }

Mauno Korpelainen added a comment - 12/Jan/09 07:55 PM
Ralf,

what do you mean by "_ Personal profile pictures are not printed."?

I tried to print my profile and it worked ok - which pages do not show profile pictures when you print them?