Incorrect umbracoNaviHide selector with different schema
If the XML Schema uses the formatting where the umbracoNaviHide value is stored as a <data> node value beneath the node, the XPATH selector in the config file will not work.
Change it to the following so that it works in both new and old xml schema format: xPath="umbracoNaviHide = '1' or self::*[string(data [@alias='umbracoNaviHide'])='1']"
Thanks Obiwan. The package is only tested with the 'new' Umbraco schema, but the beauty of having it powered by a config file is so that, as you rightly point out, you can update the XPath to cater for all kinds of different scenarios, including using the old schema.
What version of Umbraco are you running this on? It would be great to fill out a compatability report in the package repo - particularly if you've installed this successfully in an old (pre 4.5) version of Umbraco.
Ah, okay, thanks. I was kinda hoping you were using a really ancient version of Umbraco and could say that it worked that far back ;) I don't think it's been tested any further back than 4.7 though.
This post is needed to mark the thread as a "solution"
See first post... Change it to the following so that it works in both new and old xml schema format: xPath="umbracoNaviHide = '1' or self::*[string(data [@alias='umbracoNaviHide'])='1']"
Incorrect umbracoNaviHide selector with different schema
If the XML Schema uses the formatting where the umbracoNaviHide value is stored as a <data> node value beneath the node, the XPATH selector in the config file will not work.
Change it to the following so that it works in both new and old xml schema format:
xPath="umbracoNaviHide = '1' or self::*[string(data [@alias='umbracoNaviHide'])='1']"
btw, thanks for a neat little plugin :-)
Thanks Obiwan. The package is only tested with the 'new' Umbraco schema, but the beauty of having it powered by a config file is so that, as you rightly point out, you can update the XPath to cater for all kinds of different scenarios, including using the old schema.
What version of Umbraco are you running this on? It would be great to fill out a compatability report in the package repo - particularly if you've installed this successfully in an old (pre 4.5) version of Umbraco.
Thanks again for the feedback :)
Hi Dan
I'm currently using umbraco v 4.7.1.1, but with the old xml schema style, becuase we are using a lot of old xslt files.
Ah, okay, thanks. I was kinda hoping you were using a really ancient version of Umbraco and could say that it worked that far back ;) I don't think it's been tested any further back than 4.7 though.
This post is needed to mark the thread as a "solution"
See first post...
Change it to the following so that it works in both new and old xml schema format:
xPath="umbracoNaviHide = '1' or self::*[string(data [@alias='umbracoNaviHide'])='1']"
is working on a reply...