Copied to clipboard

Flag this post as spam?

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


  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Feb 09, 2015 @ 15:12
    Jeroen Breuer
    0

    Xml CheckBox Picker XPath help

    Hello,

    I've got the following site structure:

    When I'm on the 'Thema 1' node I'd like the Xml CheckBox Picker to show the the children from the 'Afdelingen' node. I would need to go up to 'NL' node from my currrent node and than go down again to the children of 'Afdelingen'. 

    When I'm on the 'Thema 1 EN' node I'd like the Xml CheckBox Picker to show the the nodes from the 'Afdelingen EN' node. I would need to go up to 'EN' node from my currrent node and than go down again to the children of 'Afdelingen EN'. 

    Is there something like a currentPage value I can use in the XPath? I can't find anything about it in the docs: https://github.com/uComponents/nuPickers/wiki/Data-Source-Xml

    Also I'm not good at XPath so any help on how to do this would be great. Thanks

    Jeroen

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Feb 09, 2015 @ 16:02
    Dave Woestenborghs
    101

    I think you can do something like this :

    $currentPage/ancestor-or-self::HomePageDocTypeAlias//AfdelingDoctypeAlias

    Not an xpath expert myself :-)

    Dave

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Feb 09, 2015 @ 17:26
    Jeroen Breuer
    0

    Thanks. I didn't know that $currentPage was available.

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft