Thanks Sean. I thought it might be something like that. Appreciate
your explanation.

On 4/15/07, Sean Cribbs <[EMAIL PROTECTED]> wrote:
> Keep in mind that your stylesheet is rendered just like a Radiant page.
> If you're linking it in the traditional pattern, <r:if_url /> will try
> to match the URL of the stylesheet, not the HTML page being viewed. This
> is because the request to get the stylesheet is not the same request as
> the one to get the page.
>
> You might try putting some code like this in your main layout:
>
> <head>
> ...
> <style type="text/css">
> <r:content part="styles" inherit="true" />
> </style>
> </head>
>
> Then in your pages that need specific changes to the style, make a
> "styles" tab/part and dump the special styles in there.  So on the
> "About" page that has the url "/about/", you could put this:
>
> body {
>   background-color: #009a3b;
> }
>
> This would accomplish what you want, and be more flexible.
>
> Sean

-- 
marshal
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to