> How do I dynamically change the layout template in Turbine according to the > current user role in a servlet session?
Why not use one template for both and put a variable in the context indicating if the additional access should be displayed? Then you don't have to maintain two seperate template files.... > > My use case is: > Two workers share the same set of screens, but one of them > has the additional role of "admin" and needs additional menu > buttons to access additional screens. My plan is to have two layout > templates and dynamically set the layout template depending on > the user's role. > > My problem is: > I was able to set the layout template from my "LoginUser.java" by > calling "data.setLayoutTemplate()". However, every time I call > "data.setScreenTemplate()", the layout template got reset back to > the default one. > > My questions is: > If I have the plan that makes Turbine-sense, anybody has > suggestions/sample-code to show me how to do this? > > Thanks in advance, > > Joe > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
