Data Manager customization: getExtraEditRecordActionButtons
Data Manager customization: getExtraEditRecordActionButtons
The getExtraEditRecordActionButtons customization allows you to modify the set of buttons and links that appears below the edit record form. It is expected not to return a value and receives the following in the args struct:
- objectName: The name of the object
- recordId: The id of the current record
- actions: the array of button "actions"
Note, if you want to completely override the buttons, you may wish to use Data Manager customization: getEditRecordActionButtons.
For example:
// /application/handlers/admin/datamanager/blog.cfc
component {
	private array function getExtraEditRecordActionButtons( event, rc, prc, args={} ) {
		var actions = args.actions ?: [];
		actions.append({
			  type      = "button"
			, class     = "btn-plus"
			, iconClass = "fa-save"
			, name      = "_saveAction"
			, value     = "publishAndEdit"
			, label     = translateResource( uri="cms:presideobjects.blog:editrecord.and.edit.btn", data=[ prc.objectTitle ?: "" ] )
		} );
	}
}
Info
See Reference: Data Manager action buttons array for add and edit forms for detailed documentation on the format of the action items.