使用 Kentico CMS 框架(版本 7)如何嵌套多个 CMS 中继器?
我已经尝试了以下绑定父母的方法,但是您将如何让孩子绑定?
<cms:CMSRepeater ID="repProducts" runat="server" ClassNames="cms.product" OrderBy="NodeLevel,NodeOrder" SelectOnlyPublished="true" MaxRelativeLevel="1">
<ItemTemplate>
<%# Eval("DocumentName")%>
<ul>
<li>
<cms:CMSRepeater ID="repProductsNested" runat="server" ClassNames="cms.product" OrderBy="NodeLevel,NodeOrder" SelectOnlyPublished="true" MaxRelativeLevel="1" Path="./%">
<HeaderTemplate>
<ul>
</HeaderTemplate>
<ItemTemplate>
<li><%# Eval("DocumentName")%>
</ItemTemplate>
</cms:CMSRepeater>
<FooterTemplate>
</ul>
</FooterTemplate>
</li>
</ul>
</ItemTemplate>
</cms:CMSRepeater>