Enter a name for the fragment in the Name field. The name displays in the Enter an identification in the ID field. This identifies the fragment and its many Choose a language for the fragment in the Language field. The language is used Click OK to close t

13-12 Oracle Fusion Middleware Users Guide for Site Studio Designer way that templates display there. In fact, some options in the Designer toolbar also apply to fragments Cut, Copy, Paste, Save, window controls, and so on. There are two ways to open the Fragment Editor: ■ Right-click an existing fragment in the Toolbox and choose Edit or Copy and Edit see Editing Fragments on page 13-7. or ■ From the File menu, select Fragments, then select New see Creating a New Fragment on page 13-9.

13.12.2 Specifying Fragment Properties

Each time you create a fragment in Designer, you are prompted to confirm or create individual properties for the fragment. You can also view and change existing properties from within the Fragment Editor by clicking the Additional Information Figure 13–8 icon: Figure 13–8 Additional Information icon To specify properties for a fragment, perform these tasks: 1. Open the Properties for Fragments dialog see Properties for Fragment Dialog on page A-89. Figure 13–9 Properties for Fragment Dialog

2. Enter a name for the fragment in the Name field. The name displays in the

Toolbox.

3. Enter an identification in the ID field. This identifies the fragment and its many

parts snippets, fragment assets, parameters, and so on. The ID also serves as an XML attribute and the base name for the fragments classes, files, and directories. You cannot change the ID after you assign one to a fragment. Note: The ID should be concise and should not contain spaces or non-ASCII characters. Working With Fragments 13-13

4. Choose a language for the fragment in the Language field. The language is used

for server-side scripting and must correlate with the Web site type. ■ Select idoc or jsp for hcspjsp sites. ■ Select asp for asp sites. 5. Choose a fragment type in the Type field. The type determines where the fragment appears in the Toolbox see Fragments in the Toolbox on page 13-2 and certain editing options available in the Fragment Editor. You have four choices: ■ navigation : A navigation fragment provides site navigation for your Web site, such as a navigation bar, breadcrumbs, and a search box. ■ dynamiclist : A dynamic list fragment provides advanced contribution features by displaying a list of data files or native documents that a contributor can edit. ■ staticlist : A static list fragment provides advanced contribution features by displaying a structured layout of elements, whereby a contributor can add, edit, and delete rows and columns of information. ■ other : This category of fragments is intended for all other, possibly miscellaneous fragments, such as a copyright, an embedded Flash presentation, and a dynamically converted document.

6. Click OK to close the Properties dialog and return to the Fragment Editor.

The Library Name in the Properties dialog denotes the fragment library where the fragment is stored. You choose this location when you save the fragment for the first time see Saving a Fragment in a Fragment Library on page 13-23.

13.12.3 Changing the Icon Associated with a Fragment