Content area

From VYRE

Jump to: navigation, search

A Content area is used in Unify as an area in a page, which is defined in the page template, and is used as a container for the portlets which are added into that area.

A content area is defined in a template using the following code.

<vyre-template:content-area id="main"/>
<vyre-template:content-area id="footer" shared="true" />

The shared attribute defines whether the content template has unique content on each page (shared="false"), and therefore portlets are added on a page level, or whether the the portlets are added on the template level (shared="true"), and therefore all pages which use that template have the same portlets. The shared attribute defaults to false.

A shared content area would be used for common page areas such as navigation or a footer.

[edit] Copying a content area

Since 4.4 it has been possible to copy an entire content area (previously it was only possible to copy individual portlets).

When a content area contains portlets a Copy icon will appear in the content area options menu. When clicked it will copy all the portlets in that area. The user can then click on another content area, or portlet, and cliking on the add portlet option will allow the user to add multiple portlets from the clipboard.

Personal tools