Multi-Node Tree Picker: regarding xpath filter and legacy xml schema
Currently we are running Umbraco 4.5.2, and the latest version of Ucomponents (1.0 RTM). For compability reasons we have enabled the legacy xml schema in Umbraco. I am trying to get the Xpath filter on the multi-node tree picker to work such that a user can only select nodes of a certain type within the structure, and my xpath for this is " /*[name()='Nettutstilling'] " based on the example provided (Xpath filter is set to enabled). This does not seem to work however. The tree renders just fine, but I am unable to select any nodes.
So my question is, can this work with the legacy xml schema enabled ? Or will we have to use alternative measures such as upgrading the rest of our XSLTs?
Multi-Node Tree Picker: regarding xpath filter and legacy xml schema
Currently we are running Umbraco 4.5.2, and the latest version of Ucomponents (1.0 RTM). For compability reasons we have enabled the legacy xml schema in Umbraco. I am trying to get the Xpath filter on the multi-node tree picker to work such that a user can only select nodes of a certain type within the structure, and my xpath for this is " /*[name()='Nettutstilling'] " based on the example provided (Xpath filter is set to enabled). This does not seem to work however. The tree renders just fine, but I am unable to select any nodes.
So my question is, can this work with the legacy xml schema enabled ? Or will we have to use alternative measures such as upgrading the rest of our XSLTs?
It will work with either schema, it's up to you to define the xpath to match the node.
The example you've used:
/*[name()='Nettutstilling']
will not work with legacy schema because the node names are always 'node'
you need to use
/node[@nodeTypeAlias='Nettutstilling']
Ok great :) Thanks!
is working on a reply...