See Chapter 4, "Programming with Oracle WebCenter Sites" for more information. The HTML structure used by the avisports sample site is used in the example below of a standard web page with a header, footer, side bar, and main area.Īn actual JSP page would include tag library directives, an opening and closing tag, and the tag, used by the cache manager.
Candy bar wrapper template for publisher code#
In either case, the value of the asset's template field is modified.ĭescription of the illustration l_changelayout_small.pngĢ4.1.1.3 A layout template typically renders an entire web pageĪ standard web page is built with HTML code using elements to define divisions within the document, typically a header, footer, side bar, and main area as shown in the diagram below.ĭescription of the illustration a-4-page.png When working in Web Mode, the default layout template can also be assigned by using the Change Layout functionality (either from the toolbar or menu bar), and selecting a layout template visually, using the template picker. See Section 23.7.5, "Previewing Template, CSElement, and SiteEntry Assets" for more information. Note that previewing does not require a layout template. In practice, this means that only layout templates can be used to work with assets in Web Mode. How does WebCenter Sites use the template field? Basically, when inspecting or editing an asset in Web Mode of the Contributor interface, WebCenter Sites uses the assigned layout template as the default template to render the asset (this is also the case when simply previewing an asset). This field stores a template name, the possible values include all layout templates applicable to the asset type and subtype.ĭescription of the illustration a-new_article.png 24.1.1.2 A layout template can be assigned to an assetĮvery content asset has template metadata which is viewable by selecting the Content tab.