/ Published in: C#

WIP dynamic objects you can use to output contour records on your umbraco site using razor
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
@using Contour.Addons.Razor <ul> @foreach (dynamic record in Library.GetApprovedRecordsFromPage(@Model.Id)) { <li> @if(string.IsNullOrEmpty(record.Website)){ <strong>@record.Name</strong> } else{ <a href="@record.Website"><strong>@record.Name</strong></a> } <p>@record.Comment</p> </li> } </ul>
Comments
