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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Manipulating Media File Methods and<br />

Properties<br />

The Media File Object methods and properties contain information about the<br />

file, the source location, and the destination.<br />

The object automatically parses the path and uses the values from some of<br />

the properties to determine a transfer destination path and a reference path.<br />

Initial values for several of these parameters are specified in the<br />

mediafiles feature of the configuration data.<br />

For more information, see ”Media File Object” on page 19.<br />

Using Local or Given Image Path Resolutions<br />

Resolution<br />

Type<br />

To learn when to use the local or given image path resolution type, it is<br />

important to understand that image paths are resolved in one of three ways.<br />

• full path<br />

• relative to the host<br />

• relative to the local page location<br />

Below is an example, based on these file locations, of a page whose image<br />

path is resolved in each way.<br />

Page Location: http://www.yourcompany.com/pages/<br />

ewebeditpro5<br />

Image Location: http://www.yourcompany.com/images/gifs<br />

Image File Name: happy.gif<br />

Image Path in HTML<br />

Full http://www.yourcompany.com/images/gifs/<br />

happy.gif<br />

Host /images/gifs/happy.gif<br />

Local ../../images/gifs/happy.gif<br />

Your choice of a resolution type is determined by the needs of the site and the<br />

publishing process. Use the ResolveMethod property to define a resolution of<br />

the image path. See Also: “Method: resolvePath” on page 91<br />

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

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

Saved successfully!

Ooh no, something went wrong!