XPath Expression for nodes starting at specific node
I'm trying to set up a uComponents XPath CheckBoxList. I want my XPath filter to only show content from a certain starting node. How do I do that? umbraco.library:GetXmlNodeById won't work here.
The XPath expression used in uComponents (which the same for the XPath Checkbox/Dropdown and MultiNodeTreePicker) does not load in any XSLT extensions (e.g. "umbraco.library", etc). It performs a straight XPath query the XML cache, (from the root node).
If you wanted to use "GetXmlNodeById", try the following XPath...
It's good form allright, only way to optimize that is if you know the exact path to the node (and only necessary if you have a LOT of nodes in the solution), e.g.:
XPath Expression for nodes starting at specific node
I'm trying to set up a uComponents XPath CheckBoxList. I want my XPath filter to only show content from a certain starting node. How do I do that? umbraco.library:GetXmlNodeById won't work here.
Hi Connie,
The XPath expression used in uComponents (which the same for the XPath Checkbox/Dropdown and MultiNodeTreePicker) does not load in any XSLT extensions (e.g. "umbraco.library", etc). It performs a straight XPath query the XML cache, (from the root node).
If you wanted to use "GetXmlNodeById", try the following XPath...
Cheers, Lee.
Since I wanted all below a certain node, I went with this, which seems to work and hopefully is good form.
Hi Connie,
It's good form allright, only way to optimize that is if you know the exact path to the node (and only necessary if you have a LOT of nodes in the solution), e.g.:
/Chriztian
is working on a reply...