Copied to clipboard

Flag this post as spam?

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


  • qrayg 24 posts 92 karma points
    Jan 11, 2016 @ 15:52
    qrayg
    0

    MultiNode TreePicker Xpath

    Here is my tree structure:

    enter image description here

    On the Some Event page I have a DataType to choose a category. I'm trying to use the MultiNode TreePicker and use the Xpath option to climb the tree from my current position to just show the categories.

    • Events = eventMain
    • Categories = eventCategories
    • Category = eventCategory

    I've tried every variation that I can think of but the only thing that works is:

    $root//eventCategories
    

    I don't want this because there are some customers that use this Events structure in multiple places on the site. I need the category picker to be context aware.

    I've tried:

    $parent//eventMain//eventCategories
    $parent//eventMain/eventCategories
    $parent/eventMain/eventCategories
    $parent/$parent/$parent/eventCategories
    $parent/$parent/$parent//eventCategories
    

    But apparently you can't stack the placeholders?

    Is there a solution to this that I'm not seeing?

  • qrayg 24 posts 92 karma points
    Jan 11, 2016 @ 19:09
    qrayg
    0

    I figured it out in case anyone else was struggling with this:

    $parent/../../eventCategories
    
  • Jan Bengtsson 64 posts 107 karma points
    Sep 11, 2017 @ 09:30
    Jan Bengtsson
    0

    Thanks for sharing this! Saved my day :-) /Jan

Please Sign in or register to post replies

Write your reply to:

Draft