Documentation > CMS Template API Library > Asset > ChildId
ChildId
Gets the child id. If this is a shortcut, the child id will be the id of the asset to which this one points, otherwise, it is the same as the id.
Type
System.Int32
Value
The child id.
Code Example
C#
Sample:
Asset myAsset = Asset.Load("/PathTo/Asset"); if(myAsset.IsLoaded) { // Returns the ID of the child branch or shortcut target. Out.WriteLine("ChildId: " + myAsset.ChildId); }