[Zope] CSS within a Zope site

Michel Pelletier michel@digicool.com
Sat, 26 Feb 2000 16:31:58 -0800


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