I think this will be more tricky is the error page is really the result of a velocity / turbine exception and it's hard to say under which sub section this happened, a possible way to do this would be to write a custom error screen that will check for a specific user privilege and according to that set the right layout
I suggest you read the overview at http://jakarta.apache.org/turbine/fsd.html and http://jakarta.apache.org/turbine/turbine-2.3/howto/velocity-site-howto.html Oron http://netada.co.uk -----Original Message----- From: Vjeran Marcinko [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 6:19 AM To: Turbine Users List Subject: RE: Multiple layouts in one app ? Actually, one more question ... Is it possible to have more than one Error.vm in turbine app ? Since I divided my web app in 2 parts, than in case of internal error I would like this error screen be shown in layout which is from that part of application (layouts/user/Default.vm or layouts/admin/Default.vm). Is it possible ? Thanx in advance, Vjeran ----- Original Message ----- From: "Vjeran Marcinko" Date: Mon, 16 Feb 2004 00:10:26 -0500 To: "Turbine Users List" Subject: RE: Multiple layouts in one app ? > Oron, > > Thanks a bunch. I was looking exactly for that. > > ----- Original Message ----- > From: "Oron Ogdan Adam" > Date: Mon, 16 Feb 2004 01:07:57 -0000 > To: "'Turbine Users List'" > Subject: RE: Multiple layouts in one app ? > > > Hi Vjeran > > > > just use sub dirs in layouts with Dafault.vm as your default layout so you > > will have > > > > layout > > admin > > Default.vm > > user > > Default.vm > > screens > > admin > > ... > > ... > > user > > ... > > ... > > > > then user,Home.vm for example will use the user layout, and admin,home.vm > > will use the admin layout > > you can also use a layout per page if you name the layout the same as the > > screen file name > > > > Oron > > > > netada.co.uk -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm --------------------------------------------------------------------- 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]
