With the fragment open in the Fragment Editor, click Add to create a snippet, or Enter a name for the snippet in the Name field. The name may contain spaces and Beside Location, choose an available option: Beside Include, choose an available option:

13-14 Oracle Fusion Middleware Users Guide for Site Studio Designer

13.12.4 Adding, Editing, and Deleting Fragment Snippets

A snippet is the actual text or code that a fragment adds to a template. A fragment must have at least one snippet, which is defined by its insertion point head of page, body, drop-point, and so on in the template. For example, if the fragment adds text to one place on the page, then you can create just one snippet for the fragment. But if the fragment inserts text or code in multiple locations on the page such as a script that must be placed in the head and the body, then you must create two snippets for the fragment one for the head and one for the body. You can add, edit, and remove fragment snippets using the Fragment Editor. To add or edit a snippet, perform these tasks:

1. With the fragment open in the Fragment Editor, click Add to create a snippet, or

highlight an existing snippet and click Properties. This opens the Snippet Properties dialog see Snippet Properties Dialog on page A-94.

2. Enter a name for the snippet in the Name field. The name may contain spaces and

special characters, if you like.

3. Beside Location, choose an available option:

■ drop-point : Inserts the snippet where the cursor is located on the template. ■ head : Inserts the snippet in the head specifically the end of the HEAD tag of the page template. ■ top-of-body : Inserts the snippet at the beginning of the body immediately following the BODY tag in the page template. ■ bottom-of-body : Inserts the snippet at the end of the body immediately preceding the BODY tag in the page template.

4. Beside Include, choose an available option:

■ simple : Adds the entire contents of the snippet to the template. If parameters are present, their values are added directly to the template, making them a permanent part of the page. The fragment, consequently, is no longer recognized as a fragment and its parameters cannot be modified see Choosing Different Parameters for a Fragment on page 13-6. ■ inline : Adds the entire contents of the snippet to the template. As an inline snippet, however, the fragment and its parameters are still recognized as a fragment. You can still move the fragment, delete it, and modify its parameters. ■ reference : Adds a reference to the snippet in the template. As a referenced snippet, not only is it still recognized and managed as a fragment, but you can still edit the fragment in the Fragment Editor and immediately see your changes on the template or templates if used more than once. This behavior is similar to that of an include file HTML, CSS, script, and so on on other Web sites.

5. Beside Design View Code, enter the text you would like to appear as a