Hi I was wondering if it's possible to do something like this in an aspx template rather than have to write a transform?
<div class="main-content-section"> <div class="container"> <% if (CurrentPage.GetProperty("PageContentLeft") != null && CurrentPage.GetValue("PageContentLeft") != null && !string.IsNullOrEmpty(CurrentPage.GetValue("PageContentLeft").ToString())) { %> <div class="row"> <div class="col-md-8"> <%= CurrentPage.GetValue("PageContentLeft") %> </div> </div> <% } %> <cms:CMSRepeater ID="ChildPageRepeater" Path="./%" MaxRelativeLevel="1" SelectOnlyPublished="true" TransformationName="CMS.MenuItem.ContentPageOverview" runat="server"></cms:CMSRepeater> </div> </div>
Hi Tom,
Try to replace CurrentPage with CurrentDocument
Please, sign in to be able to submit a new answer.