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>
}
Comments
Post a Comment