How to Render the Properties of a document from the first level in Kentico

We can’t use the Standard path Expression to render the properties of a main parent of a document  dynamically from the current path. 
Here is the Simple Workaround in achieving it
*****************************************************************************
{%
path = CurrentDocument.NodeAliasPath.Split("/");
return Documents["/" path[1]].DocumentName;
#% }
 
- My ASP.NET Application
We use cookies to provide the best possible browsing experience to you. By continuing to use our website, you agree to our Cookie Policy