I'm trying to get the @related pages@ of the current document and I'm trying to do so in a layout of a widget.Here is what I tried : @cms:CMSRepeater ID=@dlContacts@ runat=@server@ Path=@/Contacts/%@ RelationshipWithNodeGUID=@@%=DocumentContext.CurrentDocument.DocumentGUID%@@
ClassNames=@test.Contact TransformationName=@test.SomePage.Contacts@ /@ and the transformation itself : @li data-name=@@%# Eval(@FullName@)%@@ data-title=@@%#Eval(@Role@)%@@ data-phone=@@%#Eval(@Telephone@)%@@ data-email=@@%#Eval(@Email@)%@@ data-logo=@@%#Eval(@AssociatedLogo@)%@@@@/li@This return nothing and I have no idea where I'm going wrong or if I'm even going in the right direction.
I also tried to get the TreeNodes with DocumentContext.CurrentDocument.RelatedDocuments but that also returned nothing even though I'm 100% sure I have related pages asssigned to the current document..
there is probably multiple ways to do this. Any tips/clues ?
↧