i am trying to use the multi node tree picker (which seems much more capable compared to the ultimate picker) to select only items which have a parent of type "Regions". Basically i want to only allow the "en" regions for children of "en" and only regions from "nl" for pages which are children of "nl" in the following structure:
-- en
---- Regions
-------- Region 1
-------- Region 2
nl
---- Regions
-------- Region 1
-------- Region 2
I am trying the following settings for start node (configured as Relative):
$currentPage/ancestor-or-self::node/data[@nodeTypeAlias='Regions' and @level=2][1]
This should give me the sibling "Regions" of my content type within the same language but it just gives an ASP.NET server error when trying to load the editor.
Start node XSLT in multi node tree picker
Hello all,
i am trying to use the multi node tree picker (which seems much more capable compared to the ultimate picker) to select only items which have a parent of type "Regions". Basically i want to only allow the "en" regions for children of "en" and only regions from "nl" for pages which are children of "nl" in the following structure:
-- en
---- Regions
-------- Region 1
-------- Region 2
nl
---- Regions
-------- Region 1
-------- Region 2
I am trying the following settings for start node (configured as Relative):
$currentPage/ancestor-or-self::node/data[@nodeTypeAlias='Regions' and @level=2][1]
This should give me the sibling "Regions" of my content type within the same language but it just gives an ASP.NET server error when trying to load the editor.
Any help is very much appreciated.
Thank you,
Ilie
I figured out that when using "From current" as start node you should not include "@currentPage/"
My expression now looks like this: ancestor-or-self::node[@level = 2] which should give me the node named "en".
Now the control no longers gives the ugly yellow ASP.NET error but it is saying it cannot find any starting node.
is working on a reply...