[Zope] ZStylesheets issues

Phil Harris phil.harris@zope.co.uk
Tue, 15 May 2001 14:04:08 +0100


Rahsheen,

Try something like (untested):

<html>
  <head>
    <title>
      <dtml-var title_or_id>
    </title>
    <dtml-var "_.getitem(this().getId() + 'css',1)">
  </head>
<body onLoad="init()">

The last slash in the bit of code you showed is used to make the code XHTML
compliant.

hth

----- Original Message -----
From: "Rahsheen Porter" <cipher_atl@yahoo.com>
To: <zope@zope.org>
Sent: Tuesday, May 15, 2001 1:48 PM
Subject: [Zope] ZStylesheets issues


> Ok. I converted all the CSS from my old site to
> ZStylesheets, but I'm having a couple issues which I
> don't know how to handle. I have the following
> standard_html_header:
>
> <html>
>   <head>
>     <title>
>       <dtml-var title_or_id>
>     </title>
>     <dtml-var defaultcss>
>   </head>
> <body onLoad="init()">
>
> What I would rather have is something more flexible,
> but I don't know enough dtml yet to figure it out. I
> would rather that the header included a stylesheet
> based on the name of the current page (if such a
> stylesheet exists).
>
> I'm also wondering why viewing the source of this
> header shows:
>
>     <link rel="stylesheet" type="text/css"
> href="http://hostname:8080/defaultcss" />
>
> What's with that last forward-slash?
>
> ---
> Rahsheen
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> _______________________________________________
> 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 )