RE: [Zope] Zope and CSS
Is this the proper way of testing which browser you use? I copied the code below and it doesn't work, on other words, I get the NOT netscape case even in NN. (NN4.7 by the way) -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of ed colmar Sent: Thursday, April 20, 2000 5:16 AM To: zope@zope.org Subject: Re: [Zope] Zope and CSS You could also try linking your stylesheet as a <dtml-var> instead of linking it as a URL. like this: This goes anywhere in the header. I put mine in standard_html_header. <STYLE TYPE="text/css"> <dtml-if netscape> <!-- <dtml-var your_netscape_stylesheet> --> <dtml-else> <!-- <dtml-var your_other_stylesheet> --> </dtml-if> </STYLE> ----- The stylesheets should be regular zope methods with id's: "your_netscape_stylesheet" , and "your_other_stylesheet".
I am also sending two different stylesheets depending on the browser (IE or NS). Don't ask why! :)
_______________________________________________ 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 )
Either that was pseudo-code or that poster has a routine that determines the browser and sets a variable called "netscape". Your Zope wouldn't have a variable called "netscape", so the <dtml-if> will just drop down to the else clause. Kevin ----- Original Message ----- From: "Peter Bengtsson" <peter.bengtsson@rufusleonard.co.uk> To: "'ed colmar'" <element@immersivearts.com> Cc: <zope@zope.org> Sent: Thursday, April 20, 2000 5:36 AM Subject: RE: [Zope] Zope and CSS
Is this the proper way of testing which browser you use? I copied the code below and it doesn't work, on other words, I get the NOT netscape case even in NN. (NN4.7 by the way)
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of ed colmar Sent: Thursday, April 20, 2000 5:16 AM To: zope@zope.org Subject: Re: [Zope] Zope and CSS
You could also try linking your stylesheet as a <dtml-var> instead of linking it as a URL. like this:
This goes anywhere in the header. I put mine in standard_html_header.
<STYLE TYPE="text/css"> <dtml-if netscape> <!-- <dtml-var your_netscape_stylesheet> --> <dtml-else> <!-- <dtml-var your_other_stylesheet> --> </dtml-if> </STYLE>
participants (2)
-
Kevin Dangoor -
Peter Bengtsson