First Previous Next Last Portal Guide  

CHAPTER 14    Creating Custom Layouts

This chapter explains how to create custom layouts by using the exteNd Workbench. It contains the following sections:

 
Top of page

About the Portal Layout and Portal Layout Definition Wizards

You create a new layout by using the Portal Layout and Portal Layout Definition wizards, which are available in the exteNd Workbench.

The Portal Layout Wizard creates a layout descriptor file. This file provides a display name, description, and preview image file for the layout. The layout descriptor file also includes a reference to the layout definition file.

The Portal Layout Definition Wizard creates a layout definition file for an XML layout. This file describes the sections within the layout, as well as the width of the main page and the width of each section. The layout definition also specifies how components within a particular section flow (left to right or top to bottom).

 
Top of page

Creating a layout descriptor

Procedure To create a layout descriptor:

  1. Start exteNd Workbench.

  2. Select File>New.

    The New File dialog appears:

    FileNew

  3. Click the Portal tab.

    FileNewPortal

  4. Choose Portal Layout and click OK.

    CustomLayoutDescriptor1

    The layout descriptor editor displays.

    CustomLayoutDescriptor2

  5. In the layout descriptor editor, specify the settings for the layout descriptor file.

    For more information    For details about the elements of the layout descriptor file, see Layout descriptor file.

  6. Select File>Save.

    The layout descriptor file is saved in the portal-layout directory within a resource set. The ID for the layout is the name of its descriptor file, without the XML extension.

    For more information    For more information about where files are located in a resource set, see the section on Subdirectories for resources and Java classes in the Core Development Guide.

 
Top of page

Creating an XML layout definition

Procedure To create an XML layout definition:

  1. Start exteNd Workbench.

  2. Select File>New.

    The New File dialog appears:

    FileNew

  3. Click the Portal tab.

    FileNewPortal

  4. Choose Portal Layout Definition and click OK.

    CustomLayoutDefinition1

    The layout definition editor displays.

    CustomLayoutDefinition2

  5. To add a section container of type row and an initial section, click Add Row.

    The layout definition editor creates the section container and adds a new section with an ID of 1. Specify the flow, style, and width for the new section:

    CustomLayoutDefinition3

  6. To add a section container of type column and an initial section, click Add Column.

    The layout definition editor creates the section container and adds a new section. The ID for the new section is 1 higher than the last section you added.

    CustomLayoutDefinition4

  7. To add a section within a section container, select the target section container and click Add Section.

    The layout definition editor adds a new section. The ID for the new section is 1 higher than the last section you added.

    CustomLayoutDefinition5

  8. To delete a section, select the section and click Delete Section.

  9. To delete a section container, select the container and click Delete Container.

  10. Select File>Save.

  11. Specify a name for the layout definition file and click Save.

    The layout definition file is saved in the portal-layout directory within a resource set.

    For more information    For more information about where files are located in a resource set, see the section on Subdirectories for resources and Java classes in the Core Development Guide.

    For more information    For details about the elements of the layout definition file, see Layout definition file.

Procedure To edit the definition of a section:

  1. In the layout definition editor, select the section you want to edit.

  2. Select one of the following Flow attributes:

    Flow attribute

    Description

    horizontal

    Indicates that components within the section should flow from left to right.

    vertical

    Indicates that components within the section should flow from top to bottom.

  3. (Optional) Specify a Style setting. When the section is translated into HTML, the Style setting is applied to the style attribute for the generated table row or column.

  4. (Optional) Specify a Width setting. When the section is translated into HTML, the Width setting is applied to the width attribute for the generated table row or column. The width is typically expressed as a percentage.

    CustomLayoutDefinition6

    First Previous Next Last Portal Guide  

Copyright © 2000, 2001, 2002, 2003 SilverStream Software, LLC, a wholly owned subsidiary of Novell, Inc. All rights reserved.