Multinode Treepicker not allowing root as start node
I have an install with multiple sites and I need a picker that will allow me to select the homepages. I would have used nuPickers for this in the past but they do not work with the version of umbraco I am using(8.15.2).
When I add $root into the xpath query field the picker always defaults to the current folder of the current node rather than defaulting to the root.
Example structure:
Home 1:
Blog
About
Home 2:
Blog
About
Shared Blog posts:
Post 1
Post 2
Post 3
Post 4
Post 5
In this example I would like to be able to pick a home node from within Post 4 but the MNTP defaults to the Shared Blog posts page.
Erik, that does indeed return $root without an error but the tree picker seems to still revert to the section of the page the picker is located on.
The "Shared Blog posts" section has a list view and I think this is forcing it to revert to the current list view rather than show the root of the site.
Multinode Treepicker not allowing root as start node
I have an install with multiple sites and I need a picker that will allow me to select the homepages. I would have used nuPickers for this in the past but they do not work with the version of umbraco I am using(8.15.2).
When I add $root into the xpath query field the picker always defaults to the current folder of the current node rather than defaulting to the root.
Example structure:
Home 1:
Home 2:
Shared Blog posts:
In this example I would like to be able to pick a home node from within Post 4 but the MNTP defaults to the Shared Blog posts page.
Any help on this would be greatly appreciated.
Hello Peter.
try to use this xPath instead
$currentPage/ancestor-or-self::*[@level = -1]
Thanks for you suggestion Lucas, but that returns an error as the and would in theory return the same as $root anyway.
Hi,
You can try this xpath query:
Erik, that does indeed return $root without an error but the tree picker seems to still revert to the section of the page the picker is located on.
The "Shared Blog posts" section has a list view and I think this is forcing it to revert to the current list view rather than show the root of the site.
Hello Peter, Did you able to find a solution? I have a multi site setup and i want to limit the MNTP for just the root nodes.
Hi Peter, Did you find any solution for this?
I would also appreciate how you did finally manage it?
is working on a reply...