In the menu on the Site Assets pane, select Scripts. From the list, select the script to be removed and click the Remove From Site icon

11-4 Oracle Fusion Middleware Users Guide for Site Studio Designer 7. The script is copied.

11.2.3 Editing a Script

To edit a script, perform these tasks:

1. In the menu on the Site Assets pane, select Scripts.

2. From the list, select the script to be edited and click the Edit icon Figure 11–3 . The selected script is opened and can be edited in source view. Figure 11–3 Edit Icon

11.2.4 Viewing the Content Information of a Script

To view content information for a script, perform these tasks:

1. In the menu on the Site Assets pane, select Scripts.

2. Select a script from the list.

3. Click the Doc Info icon

Figure 11–4 . The content information page is displayed. Figure 11–4 Doc Info icon

11.2.5 Adding a Script to a Site

To add a script to a site, perform these tasks:

1. In the menu on the Site Assets pane, select Scripts.

2. Click the Add to Site icon

Figure 11–5 . A search results page displays. Figure 11–5 Add to Site Icon

3. Select the scripts to add, click Site Studio, and then Select Marked Documents.

4. Depending on your configuration, you may receive a caution that you are about to add existing assets to your site. Click OK. The scripts are now associated with the Web site, and you can now open it to edit.

11.2.6 Removing a Script from a Site

To remove a script from a site, perform these tasks:

1. In the menu on the Site Assets pane, select Scripts.

2. From the list, select the script to be removed and click the Remove From Site icon

Figure 11–6 . Working With Scripts and Forms 11-5 When you remove a script, you are simply removing it from the site, not deleting from the content server. Figure 11–6 Remove from Site Icon

11.3 Custom Element Forms

A custom element is a user-defined element. In addition to the other elements WYSIWYG, text only, image only, static list, dynamic list, the custom element provides one way to extend Site Studio to suit individual business needs. Custom elements are created when the other elements are not as suitable. Custom elements are full HTML files that reside within an IFRAME in the Contributor form. A custom element must use an API and implement several callbacks to function correctly as a Site Studio element. A custom element form is designed to work with a custom element, which you add to a contribution region like any other element. The custom element form is unique in that it can be used to create a custom interface that contributors use to add various types of content to a Web site. You might, for example, create a custom form that queries the content server for a certain file type, enables users to select one of those files, and returns the user to the Contributor. Or, you might create a form that provides a text box that contributors use to copy and paste source code or formatted text to a web page. The form can be a generic browser-based form that collects arbitrary information from the user and returns a value to the host in this case, Contributor. This section includes the following topics: ■ Implementing a Custom Element on page 11-5 ■ Backward Compatibility and Upgrading on page 11-12 ■ Sample Custom Elements on page 11-13

11.3.1 Implementing a Custom Element

In order for a custom element to function properly in a Contributor form, a custom element must use an API and implement a hand-full of callbacks. The following notes highlight the ElementAPI and its methods for creating custom elements. Important: If you upgrade a Site Studio site from a version before 10gR3 10.1.3.3.3, you must manually update any custom elements in the site. See Backward Compatibility and Upgrading on page 11-12. Note: The path URL to a custom element must be in the same domain as the Contributor form. This is so that the Contributor form and the custom element can communicate without violating cross-domain scripting rules.