Enables scripted content fragments to be edited in groups.

Methods

GetEditUrl

Gets a URL that can be accessed to enable editing of an editable group

Usage

#set($stringResponse = $core_v2_editableGroup.GetEditUrl($groupName))

Parameters

NameTypeDescriptionRequiredDefaultOptions
groupNamestringName of the editable groupRequired

Return Type

string

GetEditUrl

Gets a URL that can be accessed to enable editing of an editable group

Usage

#set($stringResponse = $core_v2_editableGroup.GetEditUrl($groupName, $url))

Parameters

NameTypeDescriptionRequiredDefaultOptions
groupNamestringName of the editable groupRequired
urlstringBase URL to modify to enable editing of the editable groupRequired

Return Type

string

GetRegistrationScript

Gets a Javascript script that can be executed to register a widget to participate in an editable group

Usage

#set($stringResponse = $core_v2_editableGroup.GetRegistrationScript($groupName, $saveClientFunction))

Parameters

NameTypeDescriptionRequiredDefaultOptions
groupNamestringName of the editable groupRequired
saveClientFunctionstringJavascript function to execute when the editable group is being saved. The function is given two parameters: a save function to be called when saving is successful and a failure function to be called when saving is unsuccessful. The save function can also return true/false to identify in-process save state in leiu of the success/failure functions.Required

Return Type

string

GetRegistrationScript

Gets a Javascript script that can be executed to register a widget to participate in an editable group

Usage

#set($stringResponse = $core_v2_editableGroup.GetRegistrationScript($groupName, $saveClientFunction, $validationClientFunction))

Parameters

NameTypeDescriptionRequiredDefaultOptions
groupNamestringName of the editable groupRequired
saveClientFunctionstringJavascript function to execute when the editable group is being saved. The function is given two parameters: a success function to be called when saving is successful and a failure function to be called when saving is unsuccessful. The save function can also return true/false to identify in-process save state in leiu of the success/failure functions.Required
validationClientFunctionstringJavascript function to execute when the editable group is being validated. The function is given two parameters: a success function to be called when validation is successful and a failure function to be called when validation is unsuccessful. The validation function can also return true/false to identify in-process validation state in leiu of the success/failure functions.Required

Return Type

string

GetSaveScript

Gets a Javascript script that can be executed to save all registered widgets in an editable group

Usage

#set($stringResponse = $core_v2_editableGroup.GetSaveScript($groupName, $successClientFunction, $failureClientFunction))

Parameters

NameTypeDescriptionRequiredDefaultOptions
groupNamestringName of the editable groupRequired
successClientFunctionstringJavascript function that is called when the saving of all registered widgets is successfulRequired
failureClientFunctionstringJavascript function that is called when any registered widget fails to saveRequired

Return Type

string

GetValidationScript

Gets a Javascript script that can be executed to validate all registered widgets in an editable group

Usage

#set($stringResponse = $core_v2_editableGroup.GetValidationScript($groupName, $successClientFunction, $failureClientFunction))

Parameters

NameTypeDescriptionRequiredDefaultOptions
groupNamestringName of the editable groupRequired
successClientFunctionstringJavascript function that is called when the validation of all registered widgets is successfulRequired
failureClientFunctionstringJavascript function that is called when any registered widget fails to validateRequired

Return Type

string

GetViewUrl

Gets a URL that can be accessed to disable editing of an editable group

Usage

#set($stringResponse = $core_v2_editableGroup.GetViewUrl($groupName))

Parameters

NameTypeDescriptionRequiredDefaultOptions
groupNamestringName of the editable groupRequired

Return Type

string

IsEditable

Identify if a group is currently in its edit state

Usage

#set($booleanResponse = $core_v2_editableGroup.IsEditable($groupName))

Parameters

NameTypeDescriptionRequiredDefaultOptions
groupNamestringName of the editable groupRequired

Return Type

bool