Multinode Treepicker XPATH value from the same page
I want to set start node in Multinode Treepicker using XPATH, but want to filter based on another property (also Multinode TreePicker with selected node) in nested element which sits on the same page, how to do that? any ideas?
I was able to load using hardcoded ID = 1003, but unable to figure out how to do automatically from the property:
I don't think it's possible to do that, because you would need to use the $current placeholder somewhere inside the XPath, e.g.: *[@id = $current/startNode] but placeholders only work at the beginning of the string.
Also, when you say "nested element" does that mean it's inside a BlockList or Nested Content property? Because that would really complicate things (they store blobs of JSON, which (AFAIK) is not converted to something meaningful for XPath selection, which means you'd need to find the node's UDI using text-manipulation, which was never really meant to be done with the version of XPath supported in Umbraco/.NET
Multinode Treepicker XPATH value from the same page
I want to set start node in Multinode Treepicker using XPATH, but want to filter based on another property (also Multinode TreePicker with selected node) in nested element which sits on the same page, how to do that? any ideas?
I was able to load using hardcoded ID = 1003, but unable to figure out how to do automatically from the property:
/descendant-or-self::*[@id = 1003]
Thanks!
Hi Renaldas,
I don't think it's possible to do that, because you would need to use the
$current
placeholder somewhere inside the XPath, e.g.:*[@id = $current/startNode]
but placeholders only work at the beginning of the string.Also, when you say "nested element" does that mean it's inside a BlockList or Nested Content property? Because that would really complicate things (they store blobs of JSON, which (AFAIK) is not converted to something meaningful for XPath selection, which means you'd need to find the node's UDI using text-manipulation, which was never really meant to be done with the version of XPath supported in Umbraco/.NET
/Chriztian
is working on a reply...