[Zope] What is the Best Way to Include CSS Stylesheets in Zope
RobertA.Klahn
RobertA.Klahn
Sat, 20 Apr 2002 09:40:19 -0700
Here is what I do, in page templates. I dont know if this is "best", but I know its working for me. I presume there is a similar way to do this in a DTML Method/Document.
I have a stylesheet in my root folder, in this case called "style_sheet.css", and I refer to it via the following link statement:
<link rel="stylesheet" href="" type="text/css"
media="screen,print"
tal:attributes="href python:path('here/style_sheet.css').absolute_url()">
What this gives me is the ability to override the stylesheet on a particular set of pages by having a "style_sheet.css" in the subfolder that those pages are in, without changing my page templates. This link statement is in a METAL macro that each page calls to get their header, so I actualy only have this link statement in one place.
Hope this helps.....
Bob.
>
> Message: 21
> To: zope@zope.org
> From: zvi@12thplanetcafe.com
> Date: Sat, 20 Apr 2002 08:32:54 -0700 (PDT)
> Subject: [Zope] What is the Best Way to Include CSS Stylesheets in Zope
>
> I would like for all of my Zope pages to use a CSS
> stylesheet by default. Ideally I would be able to keep
> the reference to the stylesheet in only one place in
> Zope and have changes to the stylesheet filename
> propagate globally.
>
> The Beehive book does not mention anything about how to
> integrate CSS stylesheets into Zope. Does anyone what
> is the best way to do so?
>
--
Robert A. Klahn
robert_a_klahn@fastmail.fm <======== New Email address
AIM: rklahn
Yahoo Messenger: klahn
IRC: rklahn@irc.openprojects.net
"Hope has two beautiful daughters: Anger and Courage. Anger at the way
things are, and Courage to struggle to create things as they should be." -
St. Augustine