I'm using the following code to display related documents in a repeater:
<cms:CMSRepeater ID="repElem" runat="server" DelayedLoading="true" Path="/%" TransformationName="CMS.Root.RelatedDocuments" RelationshipName="isrelatedto" RelatedNodeIsOnTheLeftSide="true" RelationshipWithNodeGUID='<%# ValidationHelper.GetGuid(Eval("NodeGUID", true), Guid.Empty) %>' />
However, the result displays every document in the tree instead of just the related document. If I manually add a NodeGUID, it works:
RelationshipWithNodeGUID='ec7ce045-8e57-473d-9d65-d7a4c485cfdd'
What am I missing? This tag <%# ValidationHelper.GetGuid(Eval("NodeGUID", true), Guid.Empty) %> displays the correct NodeGUID when I display it, but not when applied to the repeater.