Copied to clipboard

Flag this post as spam?

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

  • John C Scott 473 posts 1183 karma points
    Nov 22, 2016 @ 15:58
    John C Scott

    Using A Parent Picker with XML / Content Picker

    Is there any way to allow the selection of content available in an xml list, selected by XPath, to be chosen via a picker in the parent?

    So my tree structure would be like:

    • HOME

      +- FOLDER (doc prop: pickFolder < allows selection of a meta folder folder)

      +-- PAGE (doc prop: selector <- list of item1-3 from the meta folder selected above)

      +- META FOLDER

      +-- ANOTHER FOLDER (this one is picked above)

      +---- ITEM1

      +---- ITEM2

      +---- ITEM3

  • Jonathan Richards 288 posts 1742 karma points MVP
    Nov 22, 2016 @ 16:38
    Jonathan Richards

    Hey John,

    I think this is possible using xpath in a mntp, as long as you aren't expecting a multi-node tree picker to have multiple starting nodes.

    So the mntp located within PAGE called selector would need an xpath similar to


    Hope this helps


  • John C Scott 473 posts 1183 karma points
    Nov 22, 2016 @ 16:41
    John C Scott

    The man's a genius!

    I was trying to think how you'd inflate the XML using some kind of library call, but that is so simple, can't wait to try it.

  • Chriztian Steinmeier 2798 posts 8788 karma points MVP 8x admin c-trib
    Nov 22, 2016 @ 22:10
    Chriztian Steinmeier

    Hi John,

    I just tried this (saw on twitter that you're using nuPickers) - I created this structure:

    enter image description here

    Then I created the pickFolder property as an XML Prefetch List with this XPath:


    I created the selector property, also as an XML Prefetch List, with this XPath:

    $ancestorOrSelf/ancestor::HOME_ALIAS//*[@id = $ancestorOrSelf/ancestor-or-self::FOLDER_ALIAS/pickFolder//@Key]/ITEM_ALIAS

    (XPaths get a little muddy when you have to use the $ancestorOrSelf token first to be sure you have a published node to base the rest upon).

    Let me know if you need me to explain what's going on, or if I've misunderstood anything.


Please Sign in or register to post replies

Write your reply to: