Ron McNulty wrote:
Hi all

I have a requirement to produce a page with a standard 2-column layout, but with a narrow 
full width "Toolbar" style portlet at the top that will span both columns.

This is a one-off requirement, so I would not be too concerned if the layout 
was not supported by the page layout editor.

Can anyone give me some pointers? Maybe JSP decorators are the way to go?

Can't you simply use a nested VelocityTwoColumn layout within a 
VelocityOneColumn layout like this:

<?xml version="1.0" encoding="UTF-8"?>
<page id="my-demo.psml">
  <title>Demo</title>
  <short-title>Demo</short-title>
  <fragment type="layout" name="jetspeed-layouts::VelocityOneColumn">
    <fragment type="portlet" name="my-demo::ToolbarPortlet"/>
    <fragment type="layout" name="jetspeed-layouts::VelocityTwoColumns">
      <property name="sizes" value="50%,50%"/>
      <fragment type="portlet" name="my-demo::LeftColumnPortlet">
        <property name="row" value="0"/>
        <property name="column" value="0"/>
      </fragment>
      <fragment type="portlet" name="my-demo::RightColumnPortlet">
        <property name="row" value="0"/>
        <property name="column" value="1"/>
      </fragment>
    </fragment>
  </fragment>
</page>

Ate


Regards

Ron



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to