I would put the Stylesheet in resources/.
Then try $page.setStyleSheet($content.getURI("resources/stylesheet.css"))
But I think class TemplatePageAttributes of 2.1 doesn't have a method
setStyleSheet().
You have to extend this class and add custom methods.
Read the archive for instructions. Try searching "TemplatePageAttributesEx"
and you will find Scott's solution.

Good luck!
Marc

> -----Urspr�ngliche Nachricht-----
> Von: Eigen Technology Pty Ltd [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 19. Dezember 2002 12:09
> An: [EMAIL PROTECTED]
> Betreff: Re: Multiple addPathInfo
>
>
> 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
>
>
>
>
>
>
>
> > On 19/12/2002 4:33 PM, "Eigen Technology Pty Ltd"
> > <[EMAIL PROTECTED]> wrote:
> >
> >> Thanks Scott, that worked...$page.setStyleSheet("./vpistyle.css")
> >>
> >> could you also tell me where to put my personal style sheet in the
> >> Turbine layout.
> >>
> >> cheers
> >> michael
> > Assuming you are using t2.2, I think you can go:
> >
> >     $page.setStyleSheet(url, media)
> >
> > Use $content.getURI("relative file path") to construct the url.
> > Your media will most likely be "screen".
> >
> > HTH,
> >
> > 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]>
>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>


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

Reply via email to