Oracle® Universal Content Management 10g Release 4 (10.1.4) |
Contents |
Index |
Previous |
Next |
Site Studio Designer Guide > Building A Site From Assets > Working With the Site Hiera... > Defining Custom Properties ...
Each section in the site hierarchy contains several properties, such as a label, the names of the page templates associated with it, security, and so on (see Viewing and Editing Web Site and Section Properties).
In addition to these values, you can define your own custom property for each section in the site hierarchy and then modify your Web site to read and execute those values. This becomes especially useful when you want to customize the appearance and behavior of a particular section in the site hierarchy, such as changing the way a hyperlink for a section displays in a navigation fragment.
To define a custom section property, perform these tasks:
In the toolbar, click the Custom Section Properties icon (Figure) (or click Tools then select Define Custom Section Properties).
In the Define Custom Section Properties dialog (see Custom Section Properties Dialog), click Add.
The Define Custom Section Property dialog is displayed (Figure). For more information, see Define Custom Section Property Dialog.
Enter a name in the Name field. The name displays in the Properties pane when you select the section in the site hierarchy.
Choose a value for Type. This determines the action to take (for a description of each type, see Define Custom Section Property Dialog).
Enter a description in the Description field (optional). This displays in the description area at the bottom of the Properties pane.
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).
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 you've added (see CSP Sample Navigation (client) for an example).