If you uploaded the stylesheet as a "File" object, you won't be able to edit it. File objects are most commonly binary data. If you create the style sheet as a DTML Document or DTML Method, you'll be able to edit the text. You will want to add a line like: <dtml-call "RESPONSE.setHeader('content-type', 'text/css')"> Kevin -----Original Message----- From: Ethan Fremen <mindlace@majordomo.net> To: zope@zope.org <zope@zope.org> Date: Thursday, August 26, 1999 2:21 PM Subject: [Zope] editing content-type text/css?
zopes,
I imported my stylesheet that is called with the <link> tag in all my documents.
I intend to continue doing this, as AFAIK the browser can download one instance of the css document and use it for all further documents that refer to it.
This is opposed to what I see at some Zoped sites, where style is an object that's included as a <STYLE > tag. I'd like to avoid this because it requires that the CSS be downloaded with each page.
Anyway, why doesn't zope (v.2.0.0b5) let me edit the text of the CSS file?
thanks,
~mindlace
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
Kevin Dangoor wrote:
If you uploaded the stylesheet as a "File" object, you won't be able to edit it. File objects are most commonly binary data.
If you create the style sheet as a DTML Document or DTML Method, you'll be able to edit the text.
You will want to add a line like: <dtml-call "RESPONSE.setHeader('content-type', 'text/css')">
I was bitten by the lack of this a few days ago, in my case in .js source It would be wonderful if ordinary methods/documents had a nicer way to specify mime type (perhaps just a special attribute, like 'content-type' :) There are so many types that would benefit from DocumentTemplates and Zope in general, including stylesheets, javascript, rdf, xml, ... ----- Hannu
participants (2)
-
Hannu Krosing -
Kevin Dangoor