Hi Fredrik

On Fri, 2002-07-12 at 11:03, Fredrik Jonson wrote:

> I want to serve a stylesheet file as a separate url, ie not
> include the style info in the html code. Where is the suggested
> place to put that style sheet page? 
> 
> Do I serve it as a attachment to the style? Or is it more suitable
> to publish it as a page under the website pane and use the
> pdf-serving-hack from the midgard faq to set the content type? 

My solution for this is:
create an empty page called e.g. "style.css", its code-init contains 

<?
header ("Content-type: text/css"); 
?><[css]><?
exit ();
?>

You can access it via 
<link rel="stylesheet" href="/style.css" type="text/css">
in the <head>.

All style information is stored in the style element "css", so you can
easily make changes to it without having to deal with attachments or
file uploads.

        Nico.

-- 
"Smile, it makes people wonder what you are thinking."


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to