Data Manager customization: getExtraAddRecordActionButtons

Data Manager customization: getExtraAddRecordActionButtons

The getExtraAddRecordActionButtons customization allows you to modify the set of buttons and links that appears below the add record form. It is expected not to return a value and receives the following in the args struct:

  • objectName: The name of the object
  • actions: the array of button "actions"

Note, if you want to completely override the buttons, you may wish to use Data Manager customization: getAddRecordActionButtons.

For example:

// /application/handlers/admin/datamanager/blog.cfc

component {

	private array function getExtraAddRecordActionButtons( event, rc, prc, args={} ) {
		var actions = args.actions ?: [];

			  type      = "button"
			, class     = "btn-plus"
			, iconClass = "fa-save"
			, name      = "_saveAction"
			, value     = "publishAndEdit"
			, label     = translateResource( uri="", data=[ prc.objectTitle ?: "" ] )
		} );



See Reference: Data Manager action buttons array for add and edit forms for detailed documentation on the format of the action items.