Repeater over linked documents: get parentname of original document

Evine Beursken asked on April 26, 2017 10:21

Hi,

I have a repeater with children that are linked pages. In the transformation (which is a ascx transformation since it uses many placeholders for different conditions), I would like to have the name of the parent of the original document (which is placed somewhere else in the content tree).

Does anyone have an idea how I can do this? <%# GetDocumentUrl(Eval("DocumentID")) %> does show for example the url for the original document.

Correct Answer

Evine Beursken answered on April 26, 2017 11:26

Already fixed it by creating a new method in the helper class which I called from inside the transformation

0 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on April 26, 2017 14:37

You can also use a macro if using a text/html transformation and get the value like this: {%CurrentDocument.Parent.DocumentName%}

0 votesVote for this answer Mark as a Correct answer

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