Displaying Related Documents in a Text/XML Transform

Neil Russell asked on January 30, 2015 01:46

I am trying to link the related documents for a page inside a Text/XML transformation and the following pretty much takes care of it:

{% DocumentContext.CurrentDocument.RelatedDocuments.All.ApplyTransformation("Abstract.RelatedDocuments") #%}

The only problem is that it includes both left and right relationships and I only want to list the ones where the current document is the left page of the relationship. Is there anyway to pull that list using a macro expression?

Also I know the docs show how to do this kind of thing using an ascx transform but I wanted to see if I could figure it out using a Text/XML transform and am hoping someone can point me in the right direction to get it finished off.

Recent Answers

Jan Hermann answered on February 24, 2015 09:18


Regrettably, the macro can't return pages only from one side of the relationship. You would need to write a custom macro method to achieve that.

Best regards,
Jan Hermann

0 votesVote for this answer Mark as a Correct answer

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