Documentation > CMS Template API Library > Asset > AssetPath
AssetPath
Gets the assets full path.
Type
CrownPeak.CMSAPI.AssetPath
Value
The asset's full path.
Code Example
C#
Sample:
Asset myAsset = Asset.Load("/PathTo/Asset"); if(myAsset.IsLoaded) { Out.WriteLine("Full Path: " + myAsset.AssetPath.ToString() + "<br />"); Out.WriteLine("First Folder: " + myAsset.AssetPath[0] + "<br />"); }