Closed (won't fix)
Project:
Drupal core
Component:
theme system
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
6 Jun 2004 at 08:03 UTC
Updated:
22 Jul 2005 at 13:29 UTC
Jump to comment: Most recent file
1. Print style sheets for the xtemplate/pushbutton and chameleon themes.
2. Added the link tags to themes to call the sheets when printing.
This will allow nice printing for the core themes without having to go to a 'printer friendly page'.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | chameleon-correction.diff | 867 bytes | Nick Wilson |
| print.diff | 12.96 KB | Nick Wilson |
Comments
Comment #1
Nick Wilson commentedOoops. Small correction made to the [link] tag in chameleon.theme
Comment #2
dries commentedIf this is considered to be a good idea, we might as well make this global to all themes. Thoughts?
Comment #3
Nick Wilson commentedI'm up for it.
I'll even do the individual sheets if you like, if we can work out which ones need a specific sheet and which ones dont...
Nick
Comment #4
kika commented1) build a unified print stylesheet in misc/print.css
2) overload print css in custom themes, if needed
Comment #5
Nick Wilson commentedYeah, we talked about this on teh devel list.
Whearas it's a viable solution, the fact is that most themes would need to be overloaded which means a minimum of 3 GET requests for stylesheets.
I think I like the soluttion talked about on the list more: Individual sheets for core themes and then it's down to the /contributions theme designers to decide if they'd like their themes to support print.
Also, the core themes change from time to time, what works today may not work tommorow, far better to have a little replication but much tighter control IMO.
Nick
Comment #6
Nick Wilson commentedtap tap tap...... is this thing on?
Should I be working on this or not?
Cheers...
Nick
Comment #7
killes@www.drop.org commentedSetting this to "patch" to increase awareness.
I'd welcome the inclusion of css print styles with Drupal.
Comment #8
Steven commentedThe chameleon patch seems to be missing a print-media identifier for the print stylesheet. Also, you should avoid diffing the CVS directories.
Perhaps you should talk to adrian/vertice about PHPTemplate. He is unifying theme settings and style configuration. Print stylesheets seem a perfect inclusion is that.
I'm setting the version to cvs though. This seems a new feature.
Comment #9
dries commentedThere is a generic
misc/print.css. Can't we update the core themes to use that instead?Comment #10
Nick Wilson commentedWell, there are good reasons not to. But they were all discussed at lenght on drupal-devel list. Anyone know how to reference a thread on that list?
It was quite an involved discussion and I'd rather not have it twice ;-)
Nick
Comment #11
Nick Wilson commented...a bit of that detail in msg5 above...
Nick
Comment #12
(not verified) commentedlook at http://lists.drupal.org/archives/drupal-devel/2004-06/threads.html#00063 for what has been said and done.
Comment #13
Bèr Kessels commentedWe now have a print.css, in core. We should look at separate themes if they use it and file a bug/feature per theme. Closing this.
Comment #14
akuma commentedwell, i don't know about core changes or anything like that, but i recently wrangled a simple module to create and apply a custom print.css file. it works for me (running phptemplate with a modified version of heilemann's kubrick theme).
printstyle.module:
included it under 'modules/printstyle' along with my custom 'print.css'. then all i did was edit the 'theme_stylesheet_import' function in includes/theme.inc to specify media="screen" instead of "all".
a quick-fix, i know... but whatever works, eh? ;)