Posts

Showing posts from December, 2013

Umbraco Razor - List Documents form Folder selected via the Media Picker

1) Create a Media Picker in your Document Type: "listFilesFromAParticularFolder"  2) Create this Macro @using Examine @using Examine.SearchCriteria @using UmbracoExamine @using System.Xml.XPath @{                  if (@Model.listFilesFromAParticularFolder != "" && @Model.listFilesFromAParticularFolder != null)  {                    dynamic imageFolder = Library.NodeById(@Model.listFilesFromAParticularFolder);                                       <h2>Related Documents</h2>                       ...