21 Working with Layouts

Use layouts to define how content is organized on a page. WebCenter Portal provides several built-in layouts, and you can create new custom layouts to meet specific requirements.

Permissions:

To perform all of the tasks in this chapter on either portal-level or shared layouts, you must have at least the default permissions assigned to the Administrator or Application Specialist role. See About Application Roles and Permissions in Administering Oracle WebCenter Portal.

About Layouts

A layout defines how content is organized on a page. When you create a new page, you select a page style for the page. Every page style is associated with a default layout, which is inherited by the new page. You can modify the layout for a page or page style in the page editor.

On the Assets and Shared Assets pages, WebCenter Portal provides several built-in layouts, and you can create new custom layouts. If a layout is a shared asset (available to all portals), it is shown on the Assets page of all portals along with portal-specific layouts.

Note:

Creating and editing a layout is a fairly complex task. While you can develop layouts in WebCenter Portal, the editing capabilities are limited. Oracle recommends that developers use JDeveloper to develop layouts for portals. When fully developed, the developer can publish layouts directly to WebCenter Portal (the portal server) or to a specific portal for immediate use or for testing. Alternatively, the developer can export the layouts to a file and upload the page template to WebCenter Portal later.

For more information, see Developing Layouts in Developing for Oracle WebCenter Portal.

Figure 21-1 Assets: Layouts

Shared Assets: Layouts

You cannot directly edit any of the built-in layouts. However, you can create custom layouts by copying an existing layout and then editing it in the page editor. You can also download custom layouts, modify them in Oracle JDeveloper for additional customization, and upload them back into WebCenter Portal.

Creating a Layout

While WebCenter Portal provides several built-in layouts on the Assets and Shared Assets pages, you may want to create your own to meet the specific design requirements of your portal’s pages or page styles.

If none of the available layouts meet your requirements, you can create your own. When you create a layout, you use an existing layout as the starting point for the new layout.

Note:

Creating and editing a layout is a fairly complex task. While you can develop layouts in WebCenter Portal, the editing capabilities are limited. Oracle recommends that developers use JDeveloper to develop layouts for portals. When fully developed, the developer can publish layouts directly to WebCenter Portal (the portal server) or to a specific portal for immediate use or for testing. Alternatively, the developer can export the layouts to a file and upload the page template to WebCenter Portal later.

For more information, see Developing Layouts in Developing for Oracle WebCenter Portal.

To create a custom layout in WebCenter Portal:

Editing a Layout

In a portal, you can edit a layout to meet your requirements. Note that you can not edit built-in layouts; you can copy a built-in layout to create a new custom layout for a portal, then edit that copy (see Copying an Asset).

Note:

Creating and editing a layout is a fairly complex task. While you can develop layouts in WebCenter Portal, the editing capabilities are limited. Oracle recommends that developers use JDeveloper to develop layouts for portals. When fully developed, the developer can publish layouts directly to WebCenter Portal (the portal server) or to a specific portal for immediate use or for testing. Alternatively, the developer can export the layouts to a file and upload the page template to WebCenter Portal later.

For more information, see Developing Layouts in Developing for Oracle WebCenter Portal.

To edit a custom layout in WebCenter Portal:

  • Edit the layout source code in the source code editor (see Editing the Source Code of an Asset).

    In the Edit Source dialog, the layout source is presented on two tabs: Component and CSS. The code in the Component tab defines the XML that represents the layout component. The code in the CSS tab exposes the style sheet that describes the look and format for the layout.

Managing a Layout

The following options are available on the Assets or Shared Assets page to enable you to manage layouts:

  • Delete—You can delete a layout when it is no longer required. Note that you cannot delete a layout if it is currently in use by a page or page style.

    For more information, see Deleting an Asset.

  • Upload—You can upload an archive file that contains a layout that has been developed using JDeveloper.

    For more information, see Uploading an Asset.

  • Download—You can download a layout into an archive file for further development in JDeveloper.

    For more information, see Downloading an Asset.

  • Actions

    • Copy—You can create a copy of a layout. This is the only way to create a new layout in WebCenter Portal.

      For more information, see Copying an Asset.

    • Security Settings—You can control whether all users or only specific users or groups can access a layout.

      For more information, see Setting Security for an Asset.

    • Show Properties—Each layout has an associated Show Properties dialog that summarizes useful information about it.

      For more information, see Viewing Information About an Asset.

    • Edit Source—You can directly edit the source code of a layout.

      For more information, see Editing a Layout.

    • Edit Properties—Each layout has certain properties associated with it that control how it is displayed in the portal. You can edit these properties through the Edit Properties dialog.

      For more information, see Setting Properties on an Asset.

  • Available—You can control whether or not a layout is available for use in a portal by selecting or deselecting this check box.

    For more information, see Showing and Hiding Assets.