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
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
groupName | string | Name of the editable group | Required |
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
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
groupName | string | Name of the editable group | Required | ||
url | string | Base URL to modify to enable editing of the editable group | 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))
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
groupName | string | Name of the editable group | Required | ||
saveClientFunction | string | Javascript 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
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
groupName | string | Name of the editable group | Required | ||
saveClientFunction | string | Javascript 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 | ||
validationClientFunction | string | Javascript 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
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
groupName | string | Name of the editable group | Required | ||
successClientFunction | string | Javascript function that is called when the saving of all registered widgets is successful | Required | ||
failureClientFunction | string | Javascript function that is called when any registered widget fails to save | Required |
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
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
groupName | string | Name of the editable group | Required | ||
successClientFunction | string | Javascript function that is called when the validation of all registered widgets is successful | Required | ||
failureClientFunction | string | Javascript function that is called when any registered widget fails to validate | Required |
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
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
groupName | string | Name of the editable group | Required |
Return Type
string
IsEditable
Identify if a group is currently in its edit state
Usage
#set($booleanResponse = $core_v2_editableGroup.IsEditable($groupName))
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
groupName | string | Name of the editable group | Required |
Return Type
bool