How Should Fragments Be Used? Will Primary and Secondary Pages Require Different Templates?
4.10 Creating Page Templates
A large number of Web sites can be reduced to two simple page templates: the home page, and then all other pages. It is not uncommon for a Web site to have a home page that is distinct in terms of layout and design compared to the other pages in the Web site. It may be the case that there are multiple templates for your site. It is also possible to make an entire Web site work with one page template. If you do design the Web site with several page templates, you should possibly consider the use of subtemplates to reduce the number of page templates. Fewer page templates on a Web site makes site-wide changes much easier. You should ask yourself the following questions as you plan page templates: ■ How Should Fragments Be Used? on page 4-11 ■ Will Primary and Secondary Pages Require Different Templates? on page 4-11 4.10.1 How Should Fragments Be Used? Fragments are especially useful for maintaining dynamic content or content built with a custom script. Fragments could also be used for content that you would like to manage separately from the site assets and the contributor data files. This might be as simple as a copyright statement or as complex as a JavaScript menu. The number of fragments and the complexity of those fragments varies, depending on your site. For more information on fragments, see Chapter 13, Working With Fragments. 4.10.2 Will Primary and Secondary Pages Require Different Templates? Primary and secondary pages can both use the same page templates. However, since secondary pages are the only pages that can have dynamically placed content, you should consider the effect on how you view your page templates and even your placeholders and placeholder definitions with respect to the advantages of dynamically placed content. A secondary page serves as the backdrop for content added to the site by a contributor. Secondary pages are required if you allow contributors to add contributor data files or native documents both of which amount to new web pages to the Web site. These files are made available to the site when they are picked up by a dynamic list, a search, or the target of a link. It may be that you first build your site with just primary pages, saving secondary pages until after you set up contribution regions on the primary pages and know exactly what type of content contributors submit to the site. Then, you could add the secondary pages to handle this content. Regardless of whether you use the same or different page templates for the primary and secondary pages in your Web site, it is important that you name the page templates appropriately. This is the same for all other site assets in Site Studio. Consider the example shown in Figure 4–4 : 4-12 Oracle Fusion Middleware Users Guide for Site Studio Designer Figure 4–4 Hierarchy Showing a Poorly Named Template The same page template was used for both the primary and secondary pages. The page template name was based on where the template was based on initial placement, and when the site was expanded the reuse of the page template created a confusing arrangement. The most efficient naming of site assets, including page templates, should be based on how the page template is used. Naming conventions based on where the asset is used in a Web site for instance, page_template_primarypage or based on in the order of creation for instance pagetemplate3 can make the assets harder to manage.4.11 Planning the Site Hierarchy
Parts
» Oracle Fusion Middleware Online Documentation Library
» About Site Studio Designer, Manager, and Contributor
» Oracle Content Server and Site Studio Reusable Assets and Content
» Compared to Site Studio 10gR4 10.1.4.0.0 - Build 9.0.0.354 Compared to Site Studio 10gR3
» Context Menus Standard Windows Keyboard Shortcuts Site Studio Designer-Specific Keyboard Shortcuts
» Web Sites in HCSP, JSP, and ASP System Requirements About Designer
» System Requirements Installing Designer Uninstalling a Previous Version of Site Studio Designer
» Site Presentation Files Separation of Site Presentation and Content
» Site Content Files Site Control and Configuration Files
» Managed Web Sites Site Asset Storage
» Site Roles Presentation Model
» Contribution Model Oracle Fusion Middleware Online Documentation Library
» Site Object Hierarchy Oracle Fusion Middleware Online Documentation Library
» Reusing Site Assets Oracle Fusion Middleware Online Documentation Library
» Elements and Element Definitions
» Region Templates and Region Definitions
» Placeholders and Placeholder Definitions
» Subtemplates Page Templates Oracle Fusion Middleware Online Documentation Library
» Contributor Data Files and Native Documents
» Fragments Cascading Style Sheets
» Project Files Primary and Secondary Pages
» Why Is Planning Important? What Parts of the Site Will Be Reused?
» Naming Site Assets Oracle Fusion Middleware Online Documentation Library
» Will Contributors Submit Native Documents? How Will the Contribution Process Be Coordinated?
» Order of Site Asset Creation Creating Element Definitions
» Creating Region Definitions Creating Region Templates
» How Will The Placeholder Function On The Page? What Will The Placeholder Definition Control?
» How Should Fragments Be Used? Will Primary and Secondary Pages Require Different Templates?
» How Reusable Should The Page Templates Be? Should There Be Both Primary and Secondary Pages?
» How Will Content Be Reused? Will A Manager Be Necessary?
» Installing Designer Starting Designer Main Designer Window
» Site Hierarchy Properties Pane
» Standard Toolbar Site Toolbar
» Formatting Toolbar HTML Toolbar
» Log File Site Connection Manager
» Link Wizard Oracle Fusion Middleware Online Documentation Library
» Switch Content Wizard Oracle Fusion Middleware Online Documentation Library
» Fragment Editor Oracle Fusion Middleware Online Documentation Library
» Launching Contributor Site Studio Contributor
» Contributor Editor Site Studio Contributor
» Contributor and Workflows Site Studio Contributor
» Site Studio Manager Site Studio Administration Page in Oracle Content Server
» Site Studio Publisher in Oracle Content Server
» Publish Now Site Studio Publisher
» Moving or Docking a Pane to a Different Border
» Using the Customize Dialog Creating a New Menu
» Adding Shortcuts to the Tools Menu
» Assigning Keyboard Shortcuts Setting Display Options
» Changing the Path Used in a Site Address
» Beside Stopped Site Page, click the Additional Information icon
» About Page Templates About Region Templates
» Changing Log File Settings Understanding the Contribution Regions
» Inserting Placeholders Inserting Objects Inserting Fragments
» Working With Text Arranging Objects on the Template
» Applying CSS Classes Working With HTML Tables
» Region Templates and Region Definitions Working With Native Documents and Conversion Definitions
» About Placeholder Definitions About Region Definitions
» Creating a New Definition Copying a Definition
» From the menu bar, select File, then select Definitions, then select Upload
» Contributor Data Files Native Documents Conversion Definitions Images
» Working With Element Definitions Creating a New Content File Copying a Content File
» Requirements for Native Documents
» Using Dynamic Converter Template Selection Rules Sample Fragments for Native Documents
» About Scripts About Custom Configuration Scripts About Custom Element Forms
» Implementing a Custom Element
» Backward Compatibility and Upgrading Sample Custom Elements
» Working With Images Custom Configuration Scripts
» Default Validation Options Oracle Fusion Middleware Online Documentation Library
» In the Site Hierarchy pane, right-click the desired section and choose Select
» Viewing and Editing Web Site and Section Properties
» Expanding and Collapsing the Site Hierarchy Refreshing Your Site Hierarchy in Designer
» Working With Fragments Assigning Content With The Switch Content Wizard
» Hyperlink Formats Working With Links
» Color-Coded Differences when Comparing Web Pages Using the Compare Changes Feature
» About Fragments Adding and Editing Fragments
» Fragment Handling in Templates Fragments in the Toolbox
» Filtering Fragments in the Toolbox Adding Fragments to a Template
» Click OK. Changing the Parameters of a Fragment
» Creating a New Fragment Deleting a Fragment
» Inserting Parameters and Parameter Declarations in a Snippet
» Deleting a Fragment in the Toolbox About Site Reports Web Site Objects Report Site Usage Report
» Choose Content Tracker Report.
» Content Tracker Report About Workflows Workflow Types
» Workflow Experience for Contributors Setting Up a Workflow
» Contributor Data Files in Workflows Native Documents in Workflows
» About Site Studio Manager Choosing Where and When to Display Manager
» When Manager is Displayed Creating a Manager Configuration Settings File
» Copying a Manager Configuration Settings File
Show more