Filtering Fragments in the Toolbox Adding Fragments to a Template

13-4 Oracle Fusion Middleware Users Guide for Site Studio Designer ■ Static List Fragments : This category contains fragments that provide advanced contribution features for your Web site, specifically the ability to create a structured layout of elements WYISIWYG, plain text, image, and custom. Contributors can then use the Contributor application to add, remove, and edit rows and columns of information in the list see Static List Fragments on page C-23. ■ Other Fragments : This category contains miscellaneous fragments that you may find useful for your site a copyright line, an embedded Flash presentation, a dynamically converted native document, Manager, and so on. For a description of these fragments, see Other Fragments on page C-24.

13.5 Filtering Fragments in the Toolbox

The Toolbox in Designer displays all of the fragments that are available to you as you build your Web site. As you and other designers introduce fragments to the site or sites, however, the total number of fragments in the Toolbox can quickly become unmanageable. You can control which fragments display in the Toolbox by filtering them based on their scripting language, whether they belong to your site or not, and whether youve introduced them or they came with Site Studio. To filter fragments in the Toolbox, perform these tasks:

1. From the View menu, select Customize.

2. Click the Miscellaneous tab.

3. To display only the fragments written in the same language as your site HCSPJSP or ASP, check Filter fragments in other languages. 4. To display only the fragments that belong to your site and not other sites, check Filter libraries from other sites . Fragments in fragment libraries not identified as part of your site no longer appear in the Toolbox. To make a fragment part of your site, add it as a site asset to the Fragment Libraries category. 5. To display only the fragments that you created and not the default ones that ship with Site Studio, check Filter default libraries.

6. Click Close to close the Customize dialog.

One reason you may want to show all of the available fragments on the server is to copy one of those fragment and make it part of your site.

13.6 Adding Fragments to a Template

You can use the Toolbox to add fragments directly to a template while working in design or source view. To add a fragment, perform these tasks: 1. Place your cursor in the template where you want the fragment to appear. If youre adding a list fragment, It may be necessary to first create a contribution region and then place the fragment in that region.

2. In the Toolbox, click a fragment category: Navigation Fragments, Dynamic List

Fragments , Static List Fragments, or Other Fragments. Working With Fragments 13-5 3. Click the desired fragment see Appendix C, Sample Fragments for a description of each fragment. 4. If the fragment contains parameters, you are prompted for additional information in the Fragment Parameter Values dialog see Fragment Parameter Values Dialog on page A-96.

5. Enter the appropriate values in the fields provided and then click OK to add the

fragment. The fragment displays on your template where your cursor was last located. Many of the sample fragments insert a small text or a graphic as a visual aid so that you know where a fragment is located on a template. This small marker is known as the design view code. The design view code is used because many of the fragments contain dynamic content and server-side scripts that must be viewed in a web browser on the Web site to be seen properly. The placeholder does not necessarily represent how the fragment appears on your Web site. You can change the placeholder in the Fragment Editor, if you like see Step 5 in Adding, Editing, and Deleting Fragment Snippets on page 13-14.

13.7 Previewing Fragments