Elif Guner wrote:
Can anyone help me about defining a custom layout like
Velocity:TwoColumns. It has three columns and I want to define four
columns.
http://portals.apache.org/jetspeed-2/guides/guide-layouts.html
Layouts are implemented as portlets.
There is currently one portlet application for all layouts.
I think we need to improve on this solution, because everytime we need a
new column layout, we need to define a new portlet. I checked in a
change to the portlet.xml for the layout portlets. Here it is;
<portlet id="VelocityFourColumns">
<portlet-name>VelocityFourColumns</portlet-name>
<display-name>Four Layout Using Velocity</display-name>
<init-param>
<name>ViewPage</name>
<value>columns</value>
</init-param>
<init-param>
<name>MaxPage</name>
<value>maximized</value>
</init-param>
<init-param>
<name>columns</name>
<value>4</value>
</init-param>
<init-param>
<name>sizes</name>
<value>20%,30%,30%,20%</value>
</init-param>
<init-param>
<name>layoutType</name>
<value>FourColumns</value>
</init-param>
<portlet-class>org.apache.jetspeed.portlets.layout.MultiColumnPortlet</portlet-class>
<resource-bundle>org.apache.jetspeed.portlets.layout.resources.LayoutResource</resource-bundle>
<expiration-cache>-1</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
<portlet-mode>edit</portlet-mode>
<portlet-mode>help</portlet-mode>
</supports>
<portlet-info>
<title>VelocityFourColumns</title>
<short-title>FourColumns</short-title>
</portlet-info>
</portlet>
Here is a sample psml file using the four column layout:
<?xml version="1.0" encoding="UTF-8"?>
<page id="/Test.psml" hidden="false">
<title>Test</title>
<short-title>Test</short-title>
<defaults layout-decorator="tigris" portlet-decorator="tigris"/>
<fragment id="P-10da7f576ef-10001" type="layout"
name="jetspeed-layouts::VelocityFourColumns">
<fragment id="P-10da7f62ec0-10002" type="portlet"
name="demo::BookmarkPortlet">
<property name="row" value="0"/>
<property name="column" value="0"/>
</fragment>
<fragment id="P-10da7f62ec0-10003" type="portlet"
name="demo::CustomerDetail">
<property name="row" value="1"/>
<property name="column" value="2"/>
</fragment>
<fragment id="P-10da7f62ede-10004" type="portlet"
name="demo::CustomerInfo">
<property name="row" value="1"/>
<property name="column" value="3"/>
</fragment>
<fragment id="P-10da7f62ede-10005" type="portlet"
name="demo::CustomerList">
<property name="row" value="0"/>
<property name="column" value="1"/>
</fragment>
</fragment>
</page>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]