[Seaside] Component confusion

Ramon Leon ramon.leon at allresnet.com
Wed Aug 2 17:40:00 UTC 2006


> 
> I did notice that Seaside seems to want all styles to be in the code.
> How hard would it be to set it up so that a call to the style 
> method will return a URL?  For example, if I have a site that 
> is static on an Apache server, that happens to redirect all 
> requests for applications to seaside, but I want to use site 
> wide style sheets for it.  The easiest thing would be if I 
> can just get seaside to give a full URL for where to find the 
> stylesheet.
> 
> Thanks,
> Jason

Just override updateRoot: on your component like so to reference an external
style sheet..

updateRoot: anHtmlRoot
	super updateRoot: anHtmlRoot.
	anHtmlRoot linkToStyle: '/style.css'.
	anHtmlRoot linkToScript: '/blabla.js'.
	anHtmlRoot title: 'Some Page Title'.

This is also used to set the title, or reference external JavaScript files.



More information about the Seaside mailing list