Hi,
I'm using nested repeater and want to add contentBefore or choose container.
This is tired to do: (but properties not public)
<cms:CMSRepeater
ID="repeater_clients"
runat="server"
OrderBy="NodeOrder"
ClassNames="bla.BlaItem"
TransformationName="bla.BlaItem.test"
Path="./%"
TopN="10"
ContentBefore="<div id='container' class='clientSays'><div id='example'><div id='slides'>"
ContentAfter="</div></div></div></div>"
SelectOnlyPublished="true" />
So what I did insted is-> add code to transformation
bla.BlaItem.test.
This is code: (it works, BUT I THINK THERE MIGHT BE BETTER WAY TO CO THIS????)
<%# DataItemIndex ==0?"<div id='container'>":"" %>
<div class="block">
<p><%# Eval("test") %>
</div>
<%# DataItemIndex==DataRowView.DataView.Count-1?"</div>":"" %>
Please advise if my solution was best way to solve the issue?
Thanks :)