A Layout Template manifest file enables you to define layouts for the area of your portal page that contains the gears. A layout definition can include:

A Layout Template uses a single-row HTML table structure to render gear region fragments, which are containers for gears. Each region is the content of a cell within the table.

The following example shows an abbreviated Layout Template manifest:

<!--FILE HEADER GOES HERE --!>

<layout-templates>

 <layout-template name="Layout 25-75 Template" version="1.0"
 author="ATG Portal Team">
 <description>
 A layout that defines two columns, the left column
 reserves 25% of the screen, and the rest is used by the right
 column
 </description>
 <servlet-context>/portal/layoutTemplates</servlet-context>
 <display-modes>
 <display-mode name="shared">
 <device-output name="html">/templates/layout/html/25_75.jsp
 </device-output>
 </display-mode>
 <display-mode name="full">
 <device-output name="html">/templates/layout/html/full.jsp
 </device-output>
 </display-mode>
 </display-modes>
 <regions>
 <region name="25_75_LEFT">
 <dimensions>
 <dimension name="width">narrow</dimensions>
 <dimension name="height">tall</dimensions>
 </dimensions>
 </region>
 <region name="25_75_RIGHT">
 <dimensions>
 <dimension name="width">wide</dimensions>
 <dimension name="height">tall</dimensions>
 </dimensions>
 </region>
 </regions>
 </layout-template>

 </layout-templates>

For details about the tags and attributes you can use in a Layout Template manifest file, see Layout Template Manifest Elements in Appendix A, Portal Manifest Reference.

 
loading table of contents...