How to include a css file in Seaside 2.8+?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to include a css file in Seaside 2.8+?

Rick Flower
Ok.. I've got my Apache proxy working just fine but can't get Seaside  
to load the css files.. I think I'm close with the following code.. Is  
there something else I need to do?  This is to replace the old 2.6  
"anHtmlRoot linkToStyle: '/resources/css/screen.css' line that used to  
work..


updateRoot: anHtmlRoot

        [ ..other stuff snipped ... ]

        anHtmlRoot stylesheet resourceUrl:
        (anHtmlRoot context
                urlForDocument:(WACachedDocument fileName: '/resources/css/
screen.css')
                mimeType: 'text/css'
                fileName: 'screen.css').

Thanks!

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How to include a css file in Seaside 2.8+?

Philippe Marschall
2008/6/18 Richard E. Flower <[hidden email]>:

> Ok.. I've got my Apache proxy working just fine but can't get Seaside to
> load the css files.. I think I'm close with the following code.. Is there
> something else I need to do?  This is to replace the old 2.6 "anHtmlRoot
> linkToStyle: '/resources/css/screen.css' line that used to work..
>
>
> updateRoot: anHtmlRoot
>
>       [ ..other stuff snipped ... ]
>
>        anHtmlRoot stylesheet resourceUrl:
>        (anHtmlRoot context
>                urlForDocument:(WACachedDocument fileName:
> '/resources/css/screen.css')
>                mimeType: 'text/css'
>                fileName: 'screen.css').

I don't think this is what you want, this will not use Apache. Try the
following:

updateRoot: anHtmlRoot
    super updateRoot: anHtmlRoot.
    anHtmlRoot stylesheet url: '/resources/css/screen.css'


Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How to include a css file in Seaside 2.8+?

Rick Flower
Thanks!  That worked  like a charm!

On Jun 17, 2008, at 11:27 PM, Philippe Marschall wrote:

> 2008/6/18 Richard E. Flower <[hidden email]>:
>> Ok.. I've got my Apache proxy working just fine but can't get  
>> Seaside to
>> load the css files.. I think I'm close with the following code.. Is  
>> there
>> something else I need to do?  This is to replace the old 2.6  
>> "anHtmlRoot
>> linkToStyle: '/resources/css/screen.css' line that used to work..
>>
>>
>> updateRoot: anHtmlRoot
>>
>>      [ ..other stuff snipped ... ]
>>
>>       anHtmlRoot stylesheet resourceUrl:
>>       (anHtmlRoot context
>>               urlForDocument:(WACachedDocument fileName:
>> '/resources/css/screen.css')
>>               mimeType: 'text/css'
>>               fileName: 'screen.css').
>
> I don't think this is what you want, this will not use Apache. Try the
> following:
>
> updateRoot: anHtmlRoot
>    super updateRoot: anHtmlRoot.
>    anHtmlRoot stylesheet url: '/resources/css/screen.css'
>
>
> Cheers
> Philippe
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside