Each <layout-template> element specifies a layout template that can be used in the portal.

Attributes

name

required

version

optional

author

optional

Subelements

Element

Description/Example

description

An optional description of the layout template.

<region>

Defines a region. Required attribute is name. Required sub-element is dimensions. See <dimensions> Element.

<regions>
  <region name="25_75_LEFT">
    <dimensions>
      <dimension name="width">
      narrow
      </dimension>
      <dimension name="height">
       tall
      </dimension>
...
    </dimensions>
  </region>
...
</regions>

<servlet-context>

The servlet context of the layout template.

<display-modes>

The display modes of the layout. See <display-modes> Element.

<images>

Images used in the layout. See <images> Element.

Layout Template Manifest Example
<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 hand column
    </description>
    <servlet-context>
       /portal/layoutTemplates
    </servlet-context>
    <images>
      <image type="small">
       <url>
         /images/layout_25_75.gif
       </url>
      </image>
    </images>
    <display-modes>
       <display-mode name="shared">
         <device-output name="html">
     /html/layout_25_75.jsp
     </device-output>
   </display-mode>
  </display-modes>
    <regions>
      <region name="25_75_LEFT">
      <dimensions>
          <dimension name="width">
          narrow
          </dimension>
          <dimension name="height">
          tall
          </dimension>
...
        </dimensions>
      </region>
...
    </regions>
  </layout-template>
...
</layout-templates>

Copyright © 1997, 2014 Oracle and/or its affiliates. All rights reserved. Legal Notices