Copied to clipboard

Flag this post as spam?

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


  • Anders Rørvik 25 posts 47 karma points
    Sep 14, 2010 @ 10:20
    Anders Rørvik
    0

    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?

     

  • Shannon Deminick 1526 posts 5272 karma points MVP 3x
    Sep 14, 2010 @ 11:16
    Shannon Deminick
    0

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

     

     

  • Anders Rørvik 25 posts 47 karma points
    Sep 14, 2010 @ 11:24
    Anders Rørvik
    0

    Ok great :) Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft