Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Obiwan 33 posts 67 karma points
    Aug 08, 2012 @ 16:31
    Obiwan
    2

    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 :-)

  • Dan 1285 posts 3917 karma points c-trib
    Aug 08, 2012 @ 16:50
    Dan
    0

    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 :)

  • Obiwan 33 posts 67 karma points
    Aug 09, 2012 @ 17:02
    Obiwan
    0

    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.

  • Dan 1285 posts 3917 karma points c-trib
    Aug 09, 2012 @ 17:05
    Dan
    0

    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.

  • Obiwan 33 posts 67 karma points
    Sep 18, 2012 @ 16:35
    Obiwan
    0

    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']"

Please Sign in or register to post replies

Write your reply to:

Draft