Page Templates Subtemplates Templates

2-2 Oracle Fusion Middleware Technical Reference Guide for Site Studio added to the site by the contributor. The files that the contributor may add can be easily controlled by the designer or administrator. In addition, there are several control and configuration files used to ensure that the site works as it should. These control files are described in other chapters of this guide.

2.2 Templates

Templates are used to arrange available site assets. They are all sections of HTML or in the case of page templates, complete HTML pages where the tags describing the related content are stored. The three types of templates used are: ■ Section 2.2.1, Page Templates ■ Section 2.2.2, Subtemplates ■ Section 2.2.3, Region Templates Templates allow the data to be placed in a certain manner. The definitions define which site assets are available to place on a template, as well as how the assets can display.

2.2.1 Page Templates

Page templates are the only templates that are complete HTML pages. Generally, the best use of Site Studio is to maximize reuse of assets, the page template should be looked at as a framework for the other templates; the subtemplates and region templates used to specifically align the content. Page templates and subtemplates additionally define the placement of the contribution regions. Each section in the hierarchy can have - and typically will have - a page template assigned as the primary page for that node. The root section of the site hierarchy is where the home page of the web site is located. Just as with the other sections in the hierarchy, the Primary Page and Secondary Page entries in section properties display the page templates used for the primary and secondary pages of the each second, including the root. The data associating a page template with a primary or secondary page in a section is stored in the project page. Assigning a primary and secondary page is done in the properties pane. Placeholders on a page template are ultimately placed using the wcmPlaceholder script extension. Placeholders themselves are not a site asset, placeholders are simply a defined area on a page template or subtemplate where you can use a placeholder definition to determine how content is reused in the specific placeholder.

2.2.2 Subtemplates

Subtemplates are, simply, page templates that do not have a HEAD section. They can contain a contribution region, and are most commonly used to break one contribution region on a page template into multiple parts. Tags can be inserted on a subtemplate the same way they would be on a page template. However, any instance of reference to the HEAD tag on a subtemplate will generate unanticipated results. This is most common when using fragments on a subtemplate that have multiple snippets where one refers to the head. Site Asset Relationships and File Structure 2-3

2.2.3 Region Templates