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'.
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
I think you can do something like this :
$currentPage/ancestor-or-self::HomePageDocTypeAlias//AfdelingDoctypeAlias
Not an xpath expert myself :-)
Dave
Thanks. I didn't know that $currentPage was available.
Jeroen
is working on a reply...