15.08.2013 Views

Ektron® eWebEditPro Developer's Reference Guide

Ektron® eWebEditPro Developer's Reference Guide

Ektron® eWebEditPro Developer's Reference Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Managing Images<br />

NOTE The selections element must include at least one selection for the list to be valid.<br />

<br />

<br />

<br />

<br />

<br />

Examples of Implementing Image Selection<br />

This section provides four examples of how to create the image selection screen<br />

mentioned in Step 4 of “How Image Selection Works” on page 392. This table<br />

summarizes the examples.<br />

Example File Upload? Upload<br />

protocol<br />

1: No Restrictions, No<br />

Saving to Database<br />

2: File Size Restriction,<br />

No Saving to Database<br />

3: FTP determined by Web<br />

master<br />

4: Database Samples yes - URL stored in<br />

database<br />

no n/a no<br />

no n/a yes<br />

FTP yes<br />

HTTP yes<br />

Example 1: No Restrictions, No Saving to a Database<br />

Administrator<br />

restricts image?<br />

In this example, the user inserts an image from a remote directory. The image is<br />

not uploaded to a database, and no restrictions are imposed on the image.<br />

To incorporate this version of image selection, follow these steps.<br />

1. Within the ewebeditpro5 directory, create an .htm file, for example,<br />

imageselection.htm.<br />

2. Within the imageselection.htm file’s head tags, include the ewbeditpro.js file.<br />

<br />

<br />

(For more information, see “Customizing the Alignment Field of the Picture<br />

Properties Dialog” on page 394.)<br />

3. Still within the document’s head tags, create an insertfile function that calls<br />

the standard insertMediaFile function. (See “Method: insertMediaFile”<br />

on page 74.)<br />

<strong>Ektron®</strong> <strong>eWebEditPro</strong> Developer’s <strong>Reference</strong> <strong>Guide</strong>, Release 5.1, Revision 1 396

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!