I have a repeater configured which is pulling in related documents. This works fine when I just want to pull from one document type but how can I configure this to pull from multiple document types?
For example I have something like this:
<cms:CMSRepeater ID="rptRelatedContent" runat="server" ClassNames="MyNameSpace.CustomDocumentType" Path="/%" RelationshipName="isrelatedto" RelationshipWithNodeGuid="11111111-1111-1111-1111-111111111111"> <HeaderTemplate> <ul> </HeaderTemplate> <ItemTemplate> <li> <a href="~<%# Eval("NodeAliasPath") %>"><%# Eval("DocumentName") %></a> </li> </ItemTemplate> <FooterTemplate> </ul> </FooterTemplate> </cms:CMSRepeater> How do I also get this to pull in 'CustomDocumentType02' and 'CustomDocumentType03'?
It's ClassNames property:
ClassNames="MyNameSpace.CustomDocumentType;MyNameSpace.CustomDocumentType2;MyNameSpace.CustomDocumentType3"
Thanks - I had an space between my ClassNames which was causing a server error.
Please, sign in to be able to submit a new answer.