[Zope-dev] How to include a <style media="print"....> CSS file?

Christian Theune ct at gocept.com
Tue May 26 02:26:23 EDT 2009


On Mon, 2009-05-25 at 15:48 +0200, Hermann Himmelbauer wrote:
> Hi,
>
> [...]
>
> What I'd like to have now is to include some other CSS-file with 
> media="print".

> The zc.resourcelibrary code seems not to be able to handle this, so I'm 
> curious how to do this:
> 
> 1) Simply write this directly into my page template
> 2) Hack zc.resourcelibrary, e.g. add a ZCML-directive "media"
> 3) Use some other package I'm unaware of
> 
> Any suggestions?

4) 

Just have it included as is and add the following section:

@media print {
    @import url (print.css);
}

-- 
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1
Zope and Plone consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20090526/e29dc635/attachment.bin 


More information about the Zope-Dev mailing list