I want to use the multi contentpicker and I want to filter the nodes that are shown
Example:
- Products
--product1
----Enabled=1
--product2
----Enabled=0
--product3
----Enabled=1
I want to show all products that are enabled. Can I do this with xpath? Or is this only for selecting a start node? (and thus all the children of that start node is shown)
Yes, I know. Is there a way to filter the nodes shown by a multi content picker property? (so not just selecting the startnode, but also filtering the childs)
Hi Olivier, you could use any of the XML pickers from nuPickers as the XPath can be used to select the nodes that can be picked from (rather than just the start node)
Contentpicker - filter nodes
I want to use the multi contentpicker and I want to filter the nodes that are shown Example: - Products --product1 ----Enabled=1 --product2 ----Enabled=0 --product3 ----Enabled=1
I want to show all products that are enabled. Can I do this with xpath? Or is this only for selecting a start node? (and thus all the children of that start node is shown)
Hi Olivier
The recommended way of doing this with latest Umbraco is Razor
Are you using latest Umbraco version?
/Alex
Hey Alex,
Yes, I do. Can I use Razor in the backend?
Ah, sorry, in backend - it's XPath
Alex,
Yes, I know. Is there a way to filter the nodes shown by a multi content picker property? (so not just selecting the startnode, but also filtering the childs)
Hi Oliver,
You can only restrict by path and doc type as far as I know.
Matt
Thx Matthew, Any idea how I can achieve my goal? Third party package?
Not that I know of unless you created your own
https://our.umbraco.org/documentation/extending/property-editors/
Matt
Thx for the tip Matthew. But I will try it with nuPickers.
Hi Olivier, you could use any of the XML pickers from nuPickers as the XPath can be used to select the nodes that can be picked from (rather than just the start node)
Thx for the tip Henry. nuPicker typeahead property editor does the trick!
is working on a reply...