Documentation > CMS Template API Library > Util > Editable(String,PanelEntry,Asset)
Editable
Returns HTML attributes that enable the editing selection boxes for an asset field in the CMS. For use in output templates only. The attributes should be inserted into the wrapping HTML tag. If the editable element is inside a list panel, also include the . If the editable element is inside another asset, also include the
public System.String Editable(String,PanelEntry,Asset)
Returns
A list of HTML tag attributes
Parameters
Name | Description | Type |
---|---|---|
fieldName | The name of the field | System.String |
panel | Optional: If the field is accessed from a , the . Defaults to null. | CrownPeak.CMSAPI.PanelEntry |
asset | Optional: The asset that contains the field. Defaults to . | CrownPeak.CMSAPI.Asset |