I can't print more than first page with standardlogo + firefox
由Barron Koralesky發表於
Number of replies: 11
I can't seem to print more than the first page of any moodle page. When I print (or print preview) I only see the first page of info, then I get a second page with just the footer.
This seems to be linked to using the standardlogo theme. Plus this only occurs when I use the firefox browser (but occurs on PC and Macintosh alike). I think I can print all pages if I use the formalwhite theme, or if I use IE.
Is this a known problem? What is the fix?
Thank you!
In reply to Barron Koralesky
Re: I can't print more than first page with standardlogo + firefox
由Anthony Borrow發表於
In reply to Anthony Borrow
Re: I can't print more than first page with standardlogo + firefox
由Anthony Borrow發表於
As an example I was trying to print a page of my resources for a course with the standard theme and only recieved the first page. When I swtich the theme to formal_white I am able to print all 4 pages from within firefox. I hope that helps someone more familiar with themes to track down and isolate the cause.
In reply to Barron Koralesky
Re: I can't print more than first page with standardlogo + firefox
由Barron Koralesky發表於
I duplicated this issue (that one can only print the first page of any moodle site on firefox when using the standardlogo them) on v1.5.4+ as well.
I also duplicated it on a different install at a different site maintained by different people.
Has anyone fixed this? Is it a bug in the theme?
In reply to Barron Koralesky
Re: I can't print more than first page with standardlogo + firefox
由Barron Koralesky發表於
In reply to Barron Koralesky
Re: I can't print more than first page with standardlogo + firefox
由Sean McKay發表於
We are now at 1.6.1 and are experiencing this printing issue across multiple themes. When printing an HTML resource using the Firefox web browser, we get the first page worth of content and then a second page that only has a footer. When printing an HTML resource with IE, I get all of the pages.
In reply to Sean McKay
Re: I can't print more than first page with standardlogo + firefox
由Joseph Rézeau發表於
Sean,
In Moodle 1.6.1, the only theme which does not present this printing issue is formal_white. Can you confirm this?
I've found a workaround to correct the printing issue on themes relying on standard, e.g. standardblue, etc.
Add this at the end of the the standard theme's styles_layout.css file:
#header {
border-width: 1px!important;
border-style: solid!important;
border-color:#FFFFFF!important;
}
Can you try it on your current theme? You may have to change the color of the border-color is you do NOT want a border to appear on screen, but apparently you need it to solve the printing issue. This is strange...
Joseph
In Moodle 1.6.1, the only theme which does not present this printing issue is formal_white. Can you confirm this?
I've found a workaround to correct the printing issue on themes relying on standard, e.g. standardblue, etc.
Add this at the end of the the standard theme's styles_layout.css file:
#header {
border-width: 1px!important;
border-style: solid!important;
border-color:#FFFFFF!important;
}
Can you try it on your current theme? You may have to change the color of the border-color is you do NOT want a border to appear on screen, but apparently you need it to solve the printing issue. This is strange...
Joseph
In reply to Joseph Rézeau
Re: I can't print more than first page with standardlogo + firefox
由Stuart Anderson發表於
Hi Joseph.
I appreciate that this thread is now quite old, however, I have also been effected by this bug in my custom theme that was extending the standard one. The bug was effecting mozilla, seamonkey and firefox, but not IE.
Thanks for finding a fix for that.
I think this bug fix needs to make it's way into the main moodle code base. How do we/I make sure that happens?
Regards,
Stuart.
I appreciate that this thread is now quite old, however, I have also been effected by this bug in my custom theme that was extending the standard one. The bug was effecting mozilla, seamonkey and firefox, but not IE.
Thanks for finding a fix for that.
I think this bug fix needs to make it's way into the main moodle code base. How do we/I make sure that happens?
Regards,
Stuart.
In reply to Joseph Rézeau
Re: I can't print more than first page with standardlogo + firefox
由Joseph Rézeau發表於
In reply to Barron Koralesky
Re: I can't print more than first page with standardlogo + firefox
由Stuart Anderson發表於
In reply to Stuart Anderson
Re: I can't print more than first page with standardlogo + firefox
由Ann Adamcik發表於
This is actually a Firefox bug - it cuts off floated elements that go longer than 1 page. See http://www.critiquewall.com/2006/11/07/fixing-firefox-printing-problem-tables.
The right fix is for Moodle Themes to support print stylesheets. An interim workaround is to use IE to print long pages.
The right fix is for Moodle Themes to support print stylesheets. An interim workaround is to use IE to print long pages.
In reply to Ann Adamcik
Re: I can't print more than first page with standardlogo + firefox
由Ann Adamcik發表於
Ack, I posted too soon. Here's the solution for printing multi-page tables.
In your theme directory, do the following -
1) Create a meta.php file with the following line:
2) Create a print.css file with the following:
3) Edit config.php and set $THEME->metainclude = true;
-Ann
In your theme directory, do the following -
1) Create a meta.php file with the following line:
<link rel="stylesheet" type="text/css" media="print" href="<?php echo $CFG->themewww .'/'. current_theme() ?>/print.css" />
2) Create a print.css file with the following:
#header, #footer, .navbar {
display: none;
}
table, td {
height: 100%;
}
display: none;
}
table, td {
height: 100%;
}
3) Edit config.php and set $THEME->metainclude = true;
-Ann