With the fragment open in the Fragment Editor, click Parameters. In the Fragment Parameters dialog see Make the appropriate changes to the Type, Description, Default Value, Query With the fragment open in the Fragment Editor, click Parameters. In the Frag

13-18 Oracle Fusion Middleware Users Guide for Site Studio Designer While parameters are optional when building a fragment, they are very useful to make a fragment customizable and reusable. You can add most of a fragments functionality to the source of the fragment, or you can add it as a parameter that can be changed when the fragment is actually used. When parameters are used, you can have several renditions of the same fragment on the same template, where different parameters are used in each instance. Moreover, parameters can be useful for developers who have written code for the Web site and would like to hand off that code as a packaged feature a customizable fragment to a site designer. This scenario assumes there are multiple users in Designer.

13.12.6.1 Editing the Parameter in a Fragment

To edit the parameter in a fragment, perform these tasks:

1. With the fragment open in the Fragment Editor, click Parameters.

2. In the Fragment Parameters dialog see

Properties for Fragment Dialog on page A-89, select a parameter in the Name list. Figure 13–15 Parameter Selection in Fragment Parameters Dialog

3. Make the appropriate changes to the Type, Description, Default Value, Query

Text , and Option List Query Text and Option List do not apply to all parameter types. See Properties for Fragment Dialog on page A-89. 4. Click the Parameter Up icon Figure 13–16 or the Parameter Down icon Figure 13–17 to move the parameter up or down in the list this also affects its location in the Fragment Parameter Values dialog. Figure 13–16 Parameter Up icon Figure 13–17 Parameter Down icon

5. Click OK to close the Fragment Parameters dialog.

To see a description of the parameters in the sample fragments, see Appendix C, Sample Fragments. Working With Fragments 13-19

13.12.6.2 Adding a New Parameter to a Fragment

To add a parameter to a fragment, perform these tasks:

1. With the fragment open in the Fragment Editor, click Parameters.

2. In the Fragment Parameters dialog see

Properties for Fragment Dialog on page A-89, click the New Parameter icon Figure 13–18 and type a name for the parameter in the text box provided. Figure 13–18 New Parameter Icon Figure 13–19 Parameter Name Entry in Fragment Parameters Dialog

3. Choose a type from the Type menu for a description of each type, see

Fragment Parameters Dialog on page A-91.

4. Enter a description in the Description field.

The description displays at the bottom of the Fragment Parameter Values dialog when you use the fragment.

5. Enter a value for the Default Value.

This value is used if you do not choose a parameter value in the Fragment Parameter Values dialog when adding the fragment to a template.

6. Enter a value for Query Text and Option List this applies only to parameters of

type text, manageddoc, and managedurl.

7. Click the Parameter Up icon