About Page Templates About Region Templates

8-2 Oracle Fusion Middleware Users Guide for Site Studio Designer The rest of the content is built from the contributor data files, which are updated by contributors and are associated with the templates. The templates control how the data is displayed, and the definitions control which data is displayed. The templates are each similarly used to combine the static and dynamic content to complete each part of the site they control. This section is about the three types of templates as viewed in the Site Assets pane: ■ About Page Templates on page 8-2 ■ About Region Templates on page 8-2 ■ About Subtemplates on page 8-3 ■ About Cascading Style Sheets on page 8-3

8.1.1 About Page Templates

Page templates are fully-formed HTML files that define the layout and complete structure of a web page, including the placement of contribution regions that is, editable areas on the page, navigation aids in the form of fragments and site-wide images banners and the like. They provide the framework within which site content is displayed. The number of page templates required for a Web site depends on the site complexity, but usually a small number can easily be used. When fewer page templates are used, site-wide changes are made much more easily. The page template represents the asset that is a complete web page in HCSP, JSP, or ASP. Just as on a region template, or a subtemplate, you can place anything directly on the template, like text, or an image, or a fragment, and it appears on every instance that template is used. This is also true of subtemplates and region templates. Page templates consist of standard HTML layout and formatting code, along with Site Studio tags to specify where fragments andor placeholders go. As such, they are typically light-weight in that they only contain high-level references to where contribution regions go on the page; they do not specify anything about what goes in these regions, both in terms of content and visual presentation. That is handled by region definitions and templates. Page templates typically include site-wide graphics, such as corporate banners or page layout images, and other recurring, non-editable content, such as navigation aids. As you reuse the page template, the objects arranged on it are displayed each time the page template is displayed. Also, when you use the page templates efficiently, then you can create an entire Web site with few or even one page templates, ensuring that the standard look and feel of your Web site is maintained while also making the site management as simple as possible. See Page Templates on page 3-20 for more information.

8.1.2 About Region Templates

Region templates are partial HTML files that define the layout and look-and-feel of the data in contribution regions within web pages. They are partial HTML files in that they do not have a head and body section. This allows them to be inserted into other HTML code as the web pages are generated for the Site Studio site. These templates consist of standard HTML layout and formatting code, along with Site Studio tags to specify where elements from contributor data files or dynamic conversions of native documents are placed. Some elements from contributor data files may be displayed in some region templates, but not in others, which allows the information to be reused across different pages. Region templates are used to display Working With Templates 8-3 data within the placeholder and are used to arrange the elements limited by the region definition into the layout desired in your Web site. See Region Templates and Region Definitions on page 3-14 for more information. Since the creation of a region template requires you associate it with a region definition, it is recommended that you create region definitions first, then create region templates.

8.1.3 About Subtemplates