Documentation > CMS Template API Library > Asset > GetCmsUtilityLink(UtilityLinkType,UtilityLinkParams)

GetCmsUtilityLink

Gets the CMS utility link. Currently we only support "Edit" and "Internal" links. More utility links will be implemented as needed.

public System.String GetCmsUtilityLink(UtilityLinkType,UtilityLinkParams)


Returns

The link.

Parameters

NameDescriptionType
type The type. CrownPeak.CMSAPI.UtilityLinkType
utilityLinkParams The utility link params. CrownPeak.CMSAPI.UtilityLinkParams

Code Example

C#

Sample:
<% Asset editThisAsset = Asset.Load("/Site/Press Releases/"); %>
<a href="<%= editThisAsset.GetCmsUtilityLink(UtilityLinkType.Edit) %>">Edit This Asset</a>

Connect with Crownpeak