Get parent treenode in a transformation

GTEK IT DEV Team asked on March 20, 2020 05:51

Now i want to get the parent document name in a transformation. How can i do that?

Thanks.

Recent Answers


Dmitry Bastron answered on March 20, 2020 10:13

Hi Anh,

If you mean HTML/TEXT transformation with K# macro:

{% childDocument.Parent.DocumentName %}

If it's ASCX one:

<%# childDocument.Parent.DocumentName %>
0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.