Fragment Editor Oracle Fusion Middleware Online Documentation Library

5-34 Oracle Fusion Middleware Users Guide for Site Studio Designer Selecting the Content Depending on your wizard choices, you may be prompted to select the type of content file that is associated with the contribution region. The available content file types depend on what was made available in the region definition. Select an option: ■ To use a new contributor data file, select New Contributor data file. You are taken to a content check-in form, where you can provide the metadata for the contributor data file and check the file into the content server. The file is empty until you or another contributor edits it in the Contributor editor. ■ To use a new native document, select New native file and choose the file format. The available file formats are set in the region definition. You are taken to a content check-in form, where you can provide the metadata for the native document and check the file into the content server. All required metadata fields are marked red. The file is empty until you or another contributor edits it in its native application. ■ To use an existing file on the content server, select Existing file from server. You are taken to a search results page, which lists all items on the content server that you can choose from. The criteria for the search query are set in the region definition. Select the file you want to use by clicking its associated Select button. ■ To use an existing file on your computer, select Existing local file. You are taken to a content check-in form, where you can provide the metadata for the file and check the file into the content server. All required metadata fields are marked red. Use the Browse button next to the Primary File field to navigate to the file on your computer to use and select it. ■ To remove the existing association of a content file with the contribution region, select None. This means that the contribution region no longer has a content file assigned to it.

5.15 Fragment Editor

The fragment editor is used to create and edit fragments. To edit a fragment, simply right-click the fragment in the toolbox see Toolbox on page 5-14 and choose Edit or Copy and Edit for read-only fragments. This opens the fragment in the fragment editor. You may first see a fragment properties dialog, where you must provide some information before you can edit the fragment. To create a fragment, select File. then select Fragments, and then New. The fragment editor may display as a dialog or a tab. See Dialogs vs. Tabs on page 5-6 for more information. Getting Started With Designer 5-35 Figure 5–34 Fragment Editor Fragments can exist in many forms, from a simple copyright statement to a complex series of scripting functions. You can turn just about any piece of code into a fragment. The Fragment Editor helps you manage this code and the individual parts that comprise a fragment, including the following: ■ Properties : The properties of a fragment are its identifying characteristics such as its name, type, and scripting language. ■ Snippets : Snippets are the individual pieces of code which could simply be text that comprise a fragment. This code can be created and edited in source view or design view in the Fragment Editor similar to source and design view of a site template. You must know the correct scripting syntax if your fragment contains scripting code. ■ Assets : Assets are files that are referenced from within a fragment. A graphic, cascading style sheet, or JavaScript file are all commonly used assets. After you add an asset to a fragment, it becomes part of that fragment. ■ Elements : Elements can be added to a fragment that is used to generate a static list. When elements are used this way, contributors can edit the list, add rows, delete rows, and more. ■ Parameters : Parameters are the attributes that govern the appearance and behavior of a fragment. You can specify your own set of parameters when you create a fragment and then choose from those parameters when you add the fragment to a page template. For more information on the fragment editor, see Using the Fragment Editor on page 13-10. 5-36 Oracle Fusion Middleware Users Guide for Site Studio Designer

5.16 Contributor Data Files and Native Documents