I wanted to chime in with my methods

in my $WEBAPP/template/app/layout/Default.vm I have as my first lines

$page.setStyleSheet($content.getURI("resources/css/appstyle.css"))
$page.setBgColor("#ffffff")

so every screen that uses the default layout will pick up the 
style sheet and background color information.

the page tool inherits its methods from

 org.apache.turbine.util.template.TemplatePageAttributes

and supports the following (in 2.1 at least)

 $page.setBackground(url) 
 $page.setBgColor(color) 
 $page.setDescription(description) 
 $page.setHttpEquiv(httpEquiv, content) 
 $page.setKeywords(keywords) 
 $page.setLinkColor(color) 
 $page.setStyleSheet(url) 
 $page.setTextColor(color) 
 $page.setTitle(intitle) 
 $page.setVlinkColor(color) 


I hope this is a little helpful to the discussion.

Jeff Painter




On Wed, 25 Jun 2003, Ryan Austin wrote:

> Thanks for the help.
> 
> Ryan
> 
> ----- Original Message -----
> From: "Chris K Chew" <[EMAIL PROTECTED]>
> To: "Turbine Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, June 25, 2003 1:45 PM
> Subject: RE: RawScreen
> 
> > Hi Ryan.
> >
> > As far as I know, CSS files don't have to have a .css extension.  You could
> > simply make the css file a normal template with a blank layout, and link to
> > it inside your normal layout:
> >
> > <link href="$link.setPage("StyleSheet.vm")" rel="stylesheet"
> > type="text/css">
> >
> > But, it would be more efficient in terms of HTTP overhead if you could put
> > the styles inside the layout.
> >
> >
> > > -----Original Message-----
> > > From: Ryan Austin [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, June 25, 2003 2:27 PM
> > > To: Turbine Users List
> > > Subject: Re: RawScreen
> > >
> > >
> > > What I want to do is process a css file which has certain values
> > > changed based on which user is logged in. I guess I could just
> > > put the css in the default layout and make a pull tool to fill in the
> > > values. I just thought there might be another way?
> > >
> > > Thanks,
> > > Ryan


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

Reply via email to