Documentation > Services API > ServicesTMF > GetSitePath(Asset)

GetSitePath

Searchs for and returns the "_TMF" folder as an asset. Assuming the "_TMF" folder is in the same folder as the asset parameter, or in one of the parent folders

public CrownPeak.CMSAPI.Asset GetSitePath(Asset)


Returns

The _TMF folder as an asset

Parameters

NameDescriptionType
asset An asset within the site's folders CrownPeak.CMSAPI.Asset

Code Example

C#

Sample:

            Asset tmfFolderAsset = SerevicesTMF.GetSitePath(asset);
            

Connect with Crownpeak