Copied to clipboard

Flag this post as spam?

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


  • Reggie 1 post 21 karma points
    Mar 27, 2014 @ 22:35
    Reggie
    0

    Possible to populate XPath Dropdownlist using Multi Node Tree Picker?

    My site has 11 Locations that offer various classes. Each class has an Instructor.

    Here's what I want to do:

    • Have a master list of Instructors at the site root.
    • Associate each Location with Instructors that teach at that site, using a MNTP on the Location document type (or Ultimate Picker, doesn't matter) where I can select specific Instructors.
    • When a backoffice user creates a new class for a particular location, select an Instructor name from a dropdown list populated from the MNTP (or Ultimate Picker). The dropdown list should contain only the Instructors that teach at that site.

    The MNTP is working great, and each Location has instructors assigned using this. MNTP data is saved as XML, so this should be easy, right?

    Where I'm getting stuck:

    • On the Class document type, I have an XPath Dropdown List. I want that that dropdown list to populate from the parent Location's MNTP, but I can't figure out the right XPath string.

    Is this possible? Can the XPath Dropdown List work with MNTP, or does it work only with fully formed Umbraco content nodes?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 27, 2014 @ 23:10
    Jan Skovgaard
    0

    Hi Reggie

    What version of Umbraco are you using?

    If it's lower than 7 then have a look at the Ultimate picker instead since it can be pointed to a root in the content tree and then you can choose how the values should be shown, when using the datatype on a document type.

    Hope this helps - If you need further explanation please let us know :)

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft