Umbraco 7: List Child Subpages of a particular Document Type @inherits Umbraco.Web.Mvc.UmbracoTemplatePage @if (CurrentPage.Children("FAQ").Any()) { <div class="toggle-main faq"> @foreach (var childPage in CurrentPage.Children("FAQ")) { <div class="toggle"> <div class="toggle-title"> <!--FAQ title--> <h3><!-- <i class="fa fa-question"></i> -->@childPage.faqquestion</h3> </div> <div class="toggle-content"> <!--FAQ Detail--> <div class="entry-content"> @childPage.faqanswer </div> </div> </div> } </div> }
Mark Downie - Umbraco 7 and Umbraco 8 (and umbraco 4) Developer - Code Snippets - Glasgow - Scotland
I am Mark Downie a web developer who uses the Umbraco CMS. You can see examples of my Umbraco web sites at: http://www.markdevelopment.co.uk If you have any questions, please contact me. Thanks