Sample Custom Element

Set Host Height

px

ElementAPI.SetHostHeight(height);

Sets the height of the Element's containing IFRAME.

Set Required Indicator

On

Off

ElementAPI.SetRequiredIndicator(isRequired);

Toggles the Required graphic indicator in the Contributor Form UI.

Get Site...

xWebsites:

Radio

Checkbox

ElementAPI.GetSite(options);

Displays the Choose Website picker UI.

Get Section...

Allow Site Selection:

ElementAPI.GetSection(options);

Displays the Choose Website Section picker UI.

Get Color...

ElementAPI.GetColor(options);

Displays the Color picker UI.

Get Font...

ElementAPI.GetFont(options);

Displays the Get Font picker UI.

Get Search Results...

dID:

dDocName:

dDocTitle:

docUrl:

ElementAPI.GetSearchResults(options);

Displays the Content Server's Get Search Results page.

Get Query Text...

CaptureQueryText:

QueryFieldValues:

QueryFullText:

ElementAPI.GetQueryText(options);

Displays the Get Query Text UI.

Capture Query...

Query Text:

Sort Field:

Sort Order:

Capture Query Text:

Search Form Type:

Query Field Values:

Query Full Text:

ElementAPI.GetQueryText(options);

Displays the Content Server's Capture Query page.

Get Hyperlink...

Href:

Target:


Default Website Section...


Choose Local:

Choose Managed:

Configure Managed Query Text...

Core Content Only:


Create New XML:

Create New Native:

Create Native Doc Types:

*.doc:

*.mdb:

*.mpp:

*.ppt:

*.psd:

*.txt:

*.rtf:

*.vsd:

*.xls:


Page Location:

ElementAPI.GetHyperlink(options);

Displays the Hyperlink Wizard UI.

Focus Form

ElementAPI.FocusForm(options);

Focuses the parent window thereby blurring the Element window.