Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Daniel Lindstrom 454 posts 271 karma points
    Feb 20, 2012 @ 15:21
    Daniel Lindstrom
    0

    Filter and sort nodes in DLL library. v4.7

    Hello all!

    Using umbraco v4.7.

    What are the options and what would be the best way to filter and sort umbraco nodes in a class library (dll)?

    In this particular case I want to filter and sort by a datetime property (Date Picker With Time in backend).

    I want to find nodes with an upcoming date and nodes with a past date seperately, sorted by date.

    Thanks!

     

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Feb 20, 2012 @ 16:28
    Thomas Höhler
    0

    Hi Daniel,

    it depends where you want to search. the most common way on published nodes is the nodeFactory. If the nodes are subnodes on one specific node, you can easily iterate via NodeFactory syntax. If you the nodes are distributet over the whole system but are from one doctype LinQToUmbraco gives you what you want.

    hth, Thomas

Please Sign in or register to post replies

Write your reply to:

Draft