[Zope] CSS within a Zope site
Loren Stafford
lstaffor@dynalogic.com
Sat, 26 Feb 2000 17:31:54 -0800
There's also a How-To on this subject:
http://www.zope.org/Members/mindlace/css_zope
-- Loren
----- Original Message -----
From: Michel Pelletier <michel@digicool.com>
To: Stephen Pitts <smpitts@midsouth.rr.com>
Cc: <zope@zope.org>
Sent: February 26, 2000 04:31 PM
Subject: Re: [Zope] CSS within a Zope site
>
>
> Stephen Pitts wrote:
> >
> > I've designed a site with Zope (http://www.centralchurchyouth.org) and
> > I uses CSS pretty extensively (as much as I can get away with so that it
> > still renders OK under Netscape 4.x). Right now, pages are generated
> > more or less under the following framework:
> >
> > html_header - includes html, head, body, and table start tags
> > a_page (hypothetical) - contains actual data
> > html_footer - includes page footer with modification date, then closes
> > all necessary tags
> >
> > What if a_page wants to define custom CSS classes? Since the <head>
> > attribute is fully defined in html_header, I can't just shove a <style>
> > block at the top of a_page. Also, an appropriate @import command would
> > need to be added so the page grabs CSS info from the site-wide
> > stylesheet. I don't want to pollute the global stylesheet with a style
> > only used on one page either, so what can I do?
> >
> > Has anyone encountered this problem before or does anyone have an idea
> > as to how I can solve it?
>
> Can't you just create an alternate header method?
>
> <dtml-var some_other_header>
>
> ... content...
>
> <dtml-var some_other_footer>
>
> -Michel
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>