region

Purpose

Specifies a region within a portal canvas.

Contained by

Contains

Attributes

Attribute Description Type Default Options Use
expr An MCS expression xs:string none    optional 
name The name of the region in which a portlet is to be rendered xs:string none    required 

Example

<?xml version="1.0" encoding="UTF-8"?>
<canvas type="portal" layoutName="/region.mlyt" pageTitle="region">
  <region name="region1">
    <canvas layoutName="/welcome.mlyt" pageTitle="address" type="portlet">
      <pane name="background">
        <h3>region1</h3>
      </pane>
    </canvas>
  </region>
  <region name="region2">
    <canvas layoutName="/welcome.mlyt" pageTitle="address" type="portlet">
      <pane name="background">
        <h3>region2</h3>
      </pane>
    </canvas>
  </region>
</canvas>

The welcome.mlyt layout can be found in the MCS/repository/xml-repository directory. The region.mlyt layout may have the following structure.

regions.mlyt

Related topics