[Zope] What is the Best Way to Include CSS Stylesheets in Zope
Walter Truitt
twalter@attbi.com
Sun, 21 Apr 2002 09:35:07 -0500
There is an example in the zope book ("Creating Basic Zope Applications"
chapter, "Factoring Out Style Sheets" section).
Creating a DTML Document called style_sheet, and changing the
standard_html_header to include the <dtml-var style_sheet> tag. This way
you can override the style_sheet in lower directories.
-walter
"Yury German" <yuryg@cozydot.com> wrote:
>
> >> zvi@12thplanetcafe.com wrote:
> >> > 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?
>
> There are two ways to handle it.
>
> 1. Well you can do this via an inline css method. You can do that by
> creating a dtml method and using that to insert appropriately in to every
> page.
> 2. Create a css page in zope and then just reference it through the dtml
> standard header.
>