Here are my two transformations in the repeater. The repeater is using the leftNav transformation. And the leftNav transformation is calling the "leftNav2" transformation and "repeater2" repeater
My transformation: leftNav
<li><div class="both clearfix"><a href="<%# GetDocumentUrl() %>"><%# Eval("DocumentName") %></a>
<%# IfEmpty(Eval("MenuItemFlyoutInfo"), "", "<div class='flyout'><div class='top'></div><div class='desc'>" + Eval("DocumentName") + "hi<br />" + Eval("MenuItemFlyoutInfo") + "</div></div>") %>
</div>
<ul class="leftNavCMSListMenuUL level2">
<cms:CMSRepeater
ID='repeater'
runat='server'
ClassNames='CMS.MenuItem;custom.LubeListing;custom.Lube'
TransformationName='CMS.MenuItem.leftNav2'
Path='./%'
OrderBy='NodeLevel, NodeOrder, NodeName'
WhereCondition='NodeLevel = 2'
NestedControlsID='repeater2'
/>
</ul>
</li>
My transformation: leftNav2
<li><div class="both"><a href="<%# GetDocumentUrl() %>"><%# Eval("DocumentName") %></a>
<%# IfEmpty(Eval("MenuItemFlyoutInfo"), "", "<div class='flyout'><div class='top'></div><div class='desc'>" + Eval("MenuItemFlyoutInfo") + "</div></div>") %>
</div>
<ul class="leftNavCMSListMenuUL level3">
<cms:CMSRepeater DelayedLoading="true" StopProcessing="true"
ID='repeater2'
runat='server'
ClassNames='CMS.MenuItem;custom.LubeListing;custom.Lube'
TransformationName = 'CMS.MenuItem.leftNav3'
Path='./%'
WhereCondition='NodeParentID = 779'
OrderBy='NodeLevel, NodeOrder, NodeName'
/>
</ul>
</li>
Right now, I have "NodeParentID = 779" to call any third level items that have a parent ID of 779. It works on the page that has the Node ID of 779 of course. But I want the where condition to use the Node ID of whatever page I'm on.
Thanks!