Click or drag to resize

IAssetCMSPath Method


Retrieves the ancestry path of the asset within the CMS Assets Tree starting at the root Assets node and including the file name.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax
string CMSPath(
	bool forPublish = false,
	string publishingTargetId = ""
)

Parameters

forPublish (Optional)
Type: SystemBoolean

[Missing <param name="forPublish"/> documentation for "M:Ingeniux.CMS.IAsset.CMSPath(System.Boolean,System.String)"]

publishingTargetId (Optional)
Type: SystemString

[Missing <param name="publishingTargetId"/> documentation for "M:Ingeniux.CMS.IAsset.CMSPath(System.Boolean,System.String)"]

Return Value

Type: String
Returns a slash delimited string of the names of the folders in the ancestry of the content asset including the file name at the end.
Examples
Example of CMSPath in custom hook:
C#
if(session.Site.Asset("a/535").CMSPath().contains("views")){
    //Additional Actions
}
See Also