Posted By

timgeyssens on 04/14/11


Tagged

umbraco contour razor


Versions (?)

Umbraco Contour and razor


 / Published in: C#
 

WIP dynamic objects you can use to output contour records on your umbraco site using razor

  1. @using Contour.Addons.Razor
  2. <ul>
  3. @foreach (dynamic record in Library.GetApprovedRecordsFromPage(@Model.Id))
  4. {
  5. <li>
  6. @if(string.IsNullOrEmpty(record.Website)){
  7. <strong>@record.Name</strong>
  8. }
  9. else{
  10. <a href="@record.Website"><strong>@record.Name</strong></a>
  11. }
  12.  
  13. <p>@record.Comment</p>
  14. </li>
  15. }
  16. </ul>

Report this snippet  

You need to login to post a comment.