Data Manager customization: cloneRecordForm
Data Manager customization: cloneRecordForm
The cloneRecordForm
customization allows you to completely overwrite the view for rendering the clone record form page. The crumb trail, permissions checks and page title will be taken care of, but the rest is up to you.
The handler should return a string (the rendered clone record form page) and is provided the following in the args
struct.
objectName
: The name of the objectrecordId
: The ID of the record being cloneedrecord
: Struct of the record being cloneedcloneRecordAction
: URL for submitting the formdraftsEnabled
: Whether or not drafts are enabledcanSaveDraft
: Whether or not the current user can save drafts (for drafts only)canPublish
: Whether or not the current user can publish (for drafts only)cancelAction
: URL that any rendered 'cancel' link should use
For example:
// /application/handlers/admin/datamanager/blog.cfc
component {
private string function cloneRecordForm( event, rc, prc, args={} ) {
return renderView( view="/admin/my/custom/clonerecordForm", args=args );
}
}