Contribution Model Oracle Fusion Middleware Online Documentation Library

Understanding Site Studio Web Sites 3-7 Figure 3–2 Presentation Model for Site Studio Web Sites Page templates are used to define the site framework within which content is displayed. They contain standard HTML layout and formatting code, along with Site Studio tags to specify where fragments andor placeholders go. Placeholders specify where the contribution regions that is, editable areas are on the page. Please note that they do not specify anything about what goes in these regions, both in terms of content and visual presentation. That is handled by region templates with their associated region definitions. Region templates define the layout and look-and-feel of the data in a contribution region marked on a page template using a placeholder tag. They are separately managed site assets, which makes them easy to reuse within Web sites, or even between Web sites. Please note that in Site Studio releases prior to 10gR4 region presentation was not separately managed, but included within page templates, or layout pages as they were called in these previous releases. The content of contribution regions is stored in data files, which are also separately managed site assets. When it is time to generate a web page, Site Studio looks at the placeholder on the page template, takes its associated region template and data file, and merges these two to create HTML code that is inserted into the page template at the position of the placeholder tag. This creates the final web page, which all content in place, presented and formatted in accordance with the site and page settings.

3.6 Contribution Model

As with the presentation model, the contribution side of Site Studio Web sites separates site content from presentation, as shown in Figure 3–3 . 3-8 Oracle Fusion Middleware Users Guide for Site Studio Designer Figure 3–3 Contribution Model for Site Studio Web Sites When site contributors decide that they want to edit the contents of a web page, they press a key combination to reload the page in contribution mode. The default key combination is Ctrl+Shift+F5, but this may be modified. After a page is in contribution mode, all contribution regions that is, editable areas on a web page are marked and underlying code has been added to the page to identify what placeholder is associated with the contribution region. Based on this information, Site Studio can establish what placeholder definition and region definition are used for the placeholder. The region definition identifies the structure of the content in the contribution region in terms of its constituent data segments elements. Each element has an element definition, which defines what editing options are available to contributors for the element. When the contributor decides to edit the content in a contribution region, its associated contributor data file is checked out of the content server. The structure of the data file matches that of its associated region definition in terms of number and types of elements. The data is loaded from the data file and presented in the Contributor editor. Each element in the data file is presented as an editable element in the editor, with the editing features as defined in the element definition for the element type. When the contributor is done editing and clicks the save icon in the Contributor editor, the data file is updated and checked into the content server again. The web page is then updated in accordance with the site update schedule. Understanding Site Studio Web Sites 3-9 Please note that the Contributor editor always shows all elements in the region definition and hence, data file associated with a contribution region, even if they are not used in that particular region. The other elements may be used elsewhere on the Web site, so editing that information may affect other pages on the site.

3.7 Site Object Hierarchy