Documentation > Services API > ServicesUtil > CopyLabelConform(Asset,String)
CopyLabelConform
Conform cloned asset Label to popup field. Note: For use in copy.aspx. Sync a copied/cloned asset's content labelField with .Label text entered in "clone name" popup. Ignore if unchanged. Works best with post-input validation requiring this field and renaming asset to the content labelField on save.
public System.Void CopyLabelConform(Asset,String)
Parameters
Name | Description | Type |
---|---|---|
asset | The asset "copy" being created. | CrownPeak.CMSAPI.Asset |
labelField | The field to be synchronized with the pop-up label. | System.String |
Code Example
C#
Sample:
ServicesUtil.CopyLabelConform(asset, "page_label");