I had the same problem and spent some time to solve it But I finally decided to do it my own way I added in the velocity context a vairable "layout" and in the default layout template I simple parse this variable so I will get the same functionality if the variable is null i simply parse the original default layout I know this is somehow 'a violation' to the turbine framework but this I had to do it due time constrains
-----Original Message----- From: Tim Colson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 12:34 AM To: 'Jetspeed Users List' Subject: RE: Customize layout from Portlet? I dug around in rundata and found the setLayoutTemplate() method, tried it but with no luck. I then found in mail-archive this post: http://www.mail-archive.com/[EMAIL PROTECTED]/msg04736.ht ml "Has anyone noticed that RunData.setLayoutTemplate() does not work when using (the default in 1.3a3) settings VelocityDirectLayout and VelocityDirectScreen in TR.props. I switched to using the VelocityScreen/VelocityOnlyLayout and it works correctly." --- services.VelocityService.default.screen=VelocityScreen #services.VelocityService.default.screen=VelocityDirectScreen services.VelocityService.default.layout = VelocityOnlyLayout #services.VelocityService.default.layout = VelocityDirectLayout services.VelocityService.default.navigation=VelocityNavigation I made the changes too, and now the setLayoutTemplate() does work from buildConfigureContext()... but the portlets are rendered at the top of the page, and then the layout is rendered 'below' them on the page. Weird and not in a good way. Am I barking up the right tree at least? Is this a known issue that has been resolved? Thanks, Tim > -----Original Message----- > From: Tim Colson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 22, 2003 12:03 PM > To: [EMAIL PROTECTED] > Subject: Customize layout from Portlet? > > > Howdy folks - > Is it possible to change the overall layout using context variables > set in a portlet buildConfigureContext() ? > > When customizing, I want the portlet to either select a different > layout, or tell the standard layout to display differently - ex. no > left navigation. > > Thanks, > Timo > > > --------------------------------------------------------------------- > 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]
smime.p7s
Description: S/MIME cryptographic signature
