About Scripts About Custom Configuration Scripts About Custom Element Forms

11 Working With Scripts and Forms 11-1 11 Working With Scripts and Forms This section covers the following topics: ■ About Scripts and Forms on page 11-1 ■ Managing Assets on page 11-2 ■ Custom Element Forms on page 11-5 ■ Custom Configuration Scripts on page 11-14 ■ Default Validation Options on page 11-14

11.1 About Scripts and Forms

To enhance the contributors experience beyond the out-of-the-box behavior in an element, you can use a custom form or script that you apply to an element. You do this to allow contributors to add objects that are not supported in a WYSIWYG element, as an example, or as a mechanism that the designer uses to enforce content requirements or restrictions for the contributor. Site Studio includes several sample forms and scripts in the content server described in the topics above that you can begin using right away. To help you organize, edit, and manage these files, you may want to add each one to your site as a site asset. This section is about these topics: ■ About Scripts on page 11-1 ■ About Custom Configuration Scripts on page 11-1 ■ About Custom Element Forms on page 11-2 ■ About Validation Scripts on page 11-2

11.1.1 About Scripts

Scripts are often used in a Web site to make the Web site more effective in displaying information or in interacting with the user. You can add scripts, edit scripts, copy scripts, and add or remove scripts from your site.

11.1.2 About Custom Configuration Scripts

Custom Configuration Scripts are used to modify the interface for editing within an element in Contributor. Each configuration script can be used to add or replace commands, toolbar buttons, and context menu items. Any part of the editor can be customized to fulfill a specific requirement. 11-2 Oracle Fusion Middleware Users Guide for Site Studio Designer See About Custom Configuration Scripts on page 11-1 for more information.

11.1.3 About Custom Element Forms

A custom element form is designed to work with a custom element definition, which you add to a region template and region definition like any other element. The custom element form is used to create a custom interface that contributors use to add and control various types of content to a Web site. Site Studio comes with several predefined custom element forms in [CS-Dir]\custom\SiteStudio\support. Sample forms are also checked into the Oracle Content Server during installation.

11.1.4 About Validation Scripts