Expanding and Collapsing the Site Hierarchy Refreshing Your Site Hierarchy in Designer

Building A Site 12-13 To define a custom section property, perform these tasks:

1. In the toolbar, click the Custom Section Properties icon

Figure 12–12 or click Tools then select Define Custom Section Properties. Figure 12–12 Custom Properties icon 2. In the Define Custom Section Properties dialog see Custom Section Properties Dialog on page A-20, click Add. The Define Custom Section Property dialog is displayed Figure 12–13 . For more information, see Define Custom Section Property Dialog on page A-21. Figure 12–13 Define Custom Section Property dialog

3. Enter a name in the Name field. The name displays in the Properties pane when

you select the section in the site hierarchy.

4. Choose a value for Type. This determines the action to take for a description of

each type, see Define Custom Section Property Dialog on page A-21.

5. Enter a description in the Description field optional. This displays in the

description area at the bottom of the Properties pane.

6. Click OK twice to close both of the dialogs and return to Designer.

The custom property displays in the Properties pane for each section in the site hierarchy see Viewing and Editing Web Site and Section Properties on page 12-10. After you define a custom section property, you must go through the site hierarchy and enter a value for each section. Then, you must add the necessary code to your fragments or page templates to read and execute the custom property that youve added see CSP Sample Navigation client on page C-12 for an example.

12.1.13 Expanding and Collapsing the Site Hierarchy

You can expand and collapse the site hierarchy in the Site Hierarchy pane to see all of the sections and page templates at once or to hide them from view. You use the toolbar in Designer to do this. To expand and collapse the site hierarchy, perform these tasks: ■ To expand the site hierarchy, click the Expand Site Hierarchy icon Figure 12–14 in the toolbar. ■ To collapse the site hierarchy, click the Collapse Site Hierarchy icon Figure 12–15 in the toolbar. 12-14 Oracle Fusion Middleware Users Guide for Site Studio Designer Figure 12–14 Expand Site Hierarchy icon Figure 12–15 Collapse Site Hierarchy icon

12.1.14 Refreshing Your Site Hierarchy in Designer

As you work in Designer, there may be times when your site hierarchy becomes out of sync with the project file on the content server. To sync the two up and to make sure youre working with the most current project file, you can refresh the site hierarchy in Designer. To refresh the site hierarchy in Designer, perform one of these tasks: ■ Click the Refresh icon Figure 12–16 in the Designer toolbar. Figure 12–16 Refresh icon ■ Right-click the root of the site in the Site Hierarchy pane and choose Refresh Site Hierarchy . The icon in the lower right corner of Designer turns into the Synchronized icon Figure 12–17 to indicate the site hierarchy is synchronized with the project file. Figure 12–17 Synchronized icon

12.2 Working With Fragments

Fragments provide an additional tool for building and maintaining Web sites. A fragment is like a packaged feature or piece of functionality that can be managed separately from the page template both before it is added and after it is added. Fragments are an option for content that must be dynamic, requires frequent updates, and reused throughout a Web site or multiple Web sites. You can turn just about any piece of content, from a simple line of text to a server-side script, into a fragment. Fragments are a powerful part of Site Studio. See Chapter 13, Working With Fragments.

12.3 Assigning Content With The Switch Content Wizard

After the site has been constructed, what you have is a framework of the complete Web site that is still missing the content. The contributor data files contain the content and are edited by the contributors. One way to add a contributor data file is to leave the task to the contributor to add the content. The other is for the designer to add the content. It is also possible to switch the current content file in a region for a different content file. Adding content, editing content, or switching contributor data files is done through the switch content wizard.