get all of document type umbraco with razor

I have a document type of "info" I also have some custom properites.

infoTitle infoSummary infoBody

I want to retrieve all the documents of document type "info" and output the data.



This simple razor macro should accomplish what you desire:

    // Get root node:
    var root = Model.AncestorOrSelf();

    // Get all descendants, filter by type:
    var nodes = root.Descendants("info");

    // Loop through the filtered nodes, displaying the properties:
    @foreach (var node in nodes)

Need Your Help

Drag Drop with multiselect

winforms drag-and-drop multi-select

I've implemented drag-and-drop from a listbox to a treeview with the help of this question. The only thing I haven't figured out yet is how to drag more than one item from the listbox. I've enabled

Loading assembly which was compiled programmatically fails

c# .net .net-assembly

We try to compile source code at runtime and then add the resulting assembly to an AppDomain. But in the moment even loading the assembly fails: