Imagine being paid to improve your favorite CMS!

It could be you! Umbraco HQ are hiring and are looking for both talents and senior developers. Wonderful workplace, friendly colleagues and competitive salary.

Copied to clipboard

Flag this post as spam?

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


  • Bob 10 posts 30 karma points
    Mar 02, 2012 @ 14:14
    Bob
    0

    Retrieve list of nodes from list of property values

    Hey folks. I have been scouring this forum for many days trying to solve a problem.

    I have a list of department_ids and would like to query the Departments node for the children with department_id in the list. Is there a way to do this? Ultimately I'd like to order by department name as well.

    Departments
     -  department_id 1
     -  department_id 2
     -  department_id 3
     -  department_id 4
     -  department_id 5
     -  department_id 6

    I have tried a few approaches but they've failed. The last try was:

            DynamicNodeList retList from in @Model.XPath("/root/Departments/Department")
                                      where departmentIDList.Containsp.department_id )
                                      select p;

    This gives me "Query expressions over source type 'dynamic' or with a join sequence of type 'dynamic' are not allowed"

  • Bob 10 posts 30 karma points
    Mar 02, 2012 @ 17:49
    Bob
    0

    n/m part 5 of the walkthrough had something I could use with the Dictionary example.

    Seems to working just wondering how efficient that is...

Please Sign in or register to post replies

Write your reply to:

Draft