Technology + People + Process

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

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;

#% }

*****************************************************************************


Request for Quote

Drop us a line and we'll get in touch with you as quick as we can