You could also just add a layout template with the same name as your screen template and it'll be used automatically.
i.e. screens/Foo.vm will try to use layouts/Foo.vm and only then defaults back to layouts/Default.vm -Lou --- Melanie Philpot <[EMAIL PROTECTED]> wrote: > Thanks, have solved it with this solution. > > Melanie > > -----Original Message----- > From: Peter Courcoux [mailto:[EMAIL PROTECTED] > Sent: 19 May 2004 16:47 > To: Turbine Users List > Subject: Re: link parameters > > > Melanie, > > If you want a particular screen to always be > displayed with a different > layout from the default (which is usually > templates/app/layouts/Default.vm) then you can use a > screen class and > call > > data.setLayoutTemplate("NewLayout.vm"); > > in the doBuildTemplate(RunData data) method. > > Your class should probably extend VelocityScreen or > VelocitySecureScreen > and must be placed in the modules path which turbine > will look through > when it searches for the screen classes. See the > modules.packages entry > in TurbineResources.properties. The screen class > must have the same name > as the screen, ie. MyScreen.vm would have a > corresponding MyScreen.java > class. > > I hope this helps. > > Peter > > > On Wed, 2004-05-19 at 11:34, Melanie Philpot wrote: > > Can I pass parameters from a link to an action? > > How do I go about it? > > > > Basically I want a link to change a layout, so I > have set up an action which it goes to. > > >From the action I want to set the right layout > and know where I've linked from so I can set the > right screen. (hence the parameter) > > > > Thanks for any help > > > > Melanie > > > > > =========================================================== > > Melanie Philpot > > Web Developer > > Central Government Division > > Anite Public Sector > > 110 Fleet Road > > Fleet > > Hampshire > > GU51 4BL > > > > tel: 01252 360650 > > ddi: 01252 360668 > > fax: 01252 819729 > > > > email:mailto:[EMAIL PROTECTED] > > web: http://www.aniteps.com > > > =========================================================== > > Registered Office: Anite Public Sector: 100 > Longwater Avenue, GreenPark, Reading, Berkshire, RG2 > 6GP. VAT No. 732 9280 28 > > Registered in England No. 4045673 > > > > This email and any files transmitted with it are > confidential and are intended solely for the use of > the individual or entity to whom they are addressed. > If you have received this email in error please > inform the sender and do not print, copy or disclose > its contents to any other person nor use it for any > purpose other than for what it was intended. > > nor use it for any purpose other than for what it > was intended. > > > > > > > > Scanned for viruses by MessageLabs. The integrity > and security of this message cannot be guaranteed. > This email is intended for the named recipient only, > and may contain confidential information and > proprietary material. Any unauthorised use or > disclosure is prohibited. > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > Scanned for viruses by MessageLabs > > > Scanned for viruses by MessageLabs. The integrity > and security of this message cannot be guaranteed. > This email is intended for the named recipient only, > and may contain confidential information and > proprietary material. Any unauthorised use or > disclosure is prohibited. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Yahoo! Domains � Claim yours for only $14.70/year http://smallbusiness.promotions.yahoo.com/offer --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
