Default Validation Options Oracle Fusion Middleware Online Documentation Library

11-14 Oracle Fusion Middleware Users Guide for Site Studio Designer ss_sample_form.htm This sample form is an example of a custom element that uses all available ElementAPI methods. A complete list of these methods is available in Implementing a Custom Element on page 11-5

11.4 Custom Configuration Scripts

Custom configuration scripts are javascript files that are used specifically to modify the contributors editing area for each individual element. A configuration script can be associated with different elements, but each element must individually call the script. The customizations affect the FCKeditor and Ephox-based elements, which are WYSIWYG, text only, and image only. Custom configuration scripts 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. Site Studio ships with several sample custom configuration scripts. These samples are checked into the content server with the xWebsiteObjectType metadata value of Custom Configuration Script when the Site Studio component is installed on the content server. The following scripts are the included samples: FCKeditor-Compatible Sample Scripts ■ ss_fck_simple_command.js - This sample script is an example of a simple FCKeditor command. This particular example implements an FCKeditor command, toolbar button, and menu item. ■ ss_fck_image_command.js - This sample script is an example of an FCKeditor command that overrides the existing ssImage and Image commands. In this example, the commands are redefined and the existing Image toolbar button and context menu items are re-used. ■ ss_fck_load_multiple_commands.js - This sample script shows how to load multiple Custom Configuration Scripts. ■ ss_fck_template_command.js - This sample script enables users to insert pre-defined HTML. For more information on the Custom Configuration Scripts in the Site Assets pane, see Working With Scripts and Forms on page 11-1.

11.5 Default Validation Options

Depending on the type of element youre working with, you see different default validation options in the Element Validation dialog see below: Working With Scripts and Forms 11-15 Element type Validation options WYSIWYG min: Enforces a minimum amount of text in characters. max: Enforces a maximum amount of text in characters. Disallowed characters: Prevents contributors from using the characters that you specify here. Allow line breaks br: When checked, contributors can create a line break soft return, which is usually done by pressing SHIFT + ENTER on the keyboard. Allow paragraphs p: When checked, contributors can create a new paragraph hard return, which is usually done by pressing ENTER on the keyboard. Allow images img: When checked, contributors can add images. Plain Text min: Enforces a minimum amount of text in characters. max: Enforces a maximum amount of text in characters. Disallowed characters: Prevents contributors from using the characters that you specify here. Allow multiple lines: When checked, contributors can add new lines of text by pressing ENTER on their keyboard. Image Width: ■ min: Enforces a minimum width in pixels. ■ max: Enforces a maximum width in pixels. Height: ■ min: Enforces a minimum height in pixels. ■ max: Enforces a maximum height in pixels. Static List Number Rows ■ min: Enforces a minimum number of rows. ■ max: Enforces a maximum number of rows. 11-16 Oracle Fusion Middleware Users Guide for Site Studio Designer 12 Building A Site 12-1 12 Building A Site The first thing you do in Site Studio is connect to a content server and create your assets. You do this using the Connection Manager in Designer. With the Connection Manager, you identify a content server, create a Web site on that server more specifically, a project file, and create a connection name that is used by Designer to connect to the site. As soon as youve done this, you can start constructing your site assets into a Web site, using a site hierarchy to define the arrangement of the information. A site hierarchy comprises the individual sections of your site, like Products, Services, and About Us. In each section, there is typically a primary page, used as the main page for that section. A secondary page is usually used as well. You spend a considerable amount of time setting up the site and site hierarchy, which is discussed next. ■ Working With the Site Hierarchy on page 12-1