Yes I am creating the page from a Default.java that is common to all my screens regardless of which sub directory they are in. I am using a pull tool for all requirements unique to a particular screen.
I suppose I could use the Context in the Default.java to find the template being used and have a look-up to match that against the title. Or I could put the title into the Context, but not sure when I have access to the Context to do this prior to the screen being displayed for the first time? David -----Original Message----- From: Matthew Koranda [mailto:[EMAIL PROTECTED]] Sent: 16 April 2002 13:14 To: Turbine Users List Subject: Re: Using VelocityOnlyLayout is there a way to setTitle? Just off the top of my head, couldn't you use <title>$myTitle</title> and then set myTitle in the .java file. Is this how you are creating the page? HTH Matt ----- Original Message ----- From: "David Wynter" <[EMAIL PROTECTED]> To: "Turbine-User" <[EMAIL PROTECTED]> Sent: Tuesday, April 16, 2002 1:27 PM Subject: Using VelocityOnlyLayout is there a way to setTitle? > When using VelocityOnlyLayout is there a way to set the title from the > screen template? I used to use $page.setTitle("title unique to screen") in > my screen template but this is only posssible when using VelocityECSLayout. > Now that the title is set in the Default.vm in the layout sub directory > specific to the role of the user eg. ..../app/layout/Admin/Default.vm I need > a way to recognise which screen is being used and to somehow get a title > associated with that screen. Has anybody done this before? > > > David Wynter > Director > roamware Ltd. > (+44) (0) 208 922 7539 B. > (+44) (0) 7879 605 706 M. > [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]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
