Documentation

Displaying the FAQs in the UI

Now the FAQs are in place and the data is there, to display them to the end user simply update your view:

@model MrCMS.Web.Apps.Faqs.Pages.ShowFaqs
@Editable(Model, faqs => faqs.BodyContent, true)
<div class="list-group">
    @foreach (var faq in Model.Faqs)
    {
        <div class="list-group-item">
            <h4 class="list-group-item-heading">@faq.Question</h4>
            <p class="list-group-item-text">@Html.Raw(faq.Answer)</p>
        </div>
    }
</div>

To be continued....