On 19/12/2002 10:08 PM, "Eigen Technology Pty Ltd"
<[EMAIL PROTECTED]> wrote:

> I am using tdk2.1.
> 
> the .vm file is in app/screens, I tried to put the style.css in
> app/screens and app/layouts, and include this line in the .vm file:
> 
> $page.setStyleSheet("./vpistyle.css")
> 
> and then
> 
> $page.setStyleSheet("/vpistyle.css")
> 
> but it does not seem to have worked. Any idea?
> 
> thanks
> michael
setStyleSheet() is new in t2.2 so you will either have to patch it into your
t2.1 code or extend TemplatePageAttributes and provide it.  You should be
able to find details of how to do this in the mail archive (not sure if it
was turbine-user or turbine-dev).

Use something like $content.getURI("css/global.css") to generate the first
argument of setStyleSheet() - in this example the css directory would exist
at the same level as the WEB-INF directory (i.e. they are both children of
the main application directory).

Cheers,

Scott
-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
.Mac Chat/AIM: seade at mac dot com




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

Reply via email to