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]

Reply via email to