Umbraco Razor A to Z Loop iterate Through Media Folders: @using Examine @using Examine.SearchCriteria @using UmbracoExamine @using System.Xml.XPath @helper DisplayDocImage(string thisExtension) { switch (thisExtension) { case "docx": case "doc": case "rtf": { @Html.Raw("Word Document"); break; } case "xls": case "xlsx": { @Html.Raw("Excel Spreadsheet Document"); break; } case "ppt": case "pps": case "pptx": case "ppsx": { @Html.Raw("Powerpoint Document");
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