Copied to clipboard

Flag this post as spam?

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


  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    May 04, 2016 @ 16:34
    Alex Skrypnyk
    0

    MNTP XPath issue

    Hi,

    It's making me crazy, can somebody help with XPath?

    I'm using Multi Node Tree Picker, I need to show in picker sibling root node.

    Tried without result:

    $root/child::*[@id != $site/@id]
    

    Cheers, Alex

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    May 04, 2016 @ 19:49
    Dennis Aaen
    1

    Hi Alex,

    If I understand your question correctly then you have serval root nodes that you want to be able to pick in the Multi Node Tree Picker.

    Then you can do with this Xpath.

    $site/umbHomePage
    

    Where the umbHomePage is the document type alias for the root node of your site.

    Hope this helps or at least helps you a step further.

    /Dennis

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    May 04, 2016 @ 21:21
    Alex Skrypnyk
    0

    Hi Dennis,

    Thank you very much for your reply. You understand right that I need root nodes, but except current. So if I have 2 root nodes - I will have 1 root node in the picker, but not ancestor of the current node.

    I need siblings of the root node.

    Something like siblings:: will be great. But there are only preceding-sibling and following-sibling. I need both in one expression.

    Cheers, Alex

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    May 05, 2016 @ 09:35
    Alex Skrypnyk
    0

    Don't want to write custom control )) XPath is perfect, but I can't understand why it's not working.

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    May 05, 2016 @ 09:59
    Alex Skrypnyk
    100
    $site/following-sibling::* | $site/preceding-sibling::*
    

    What I need, but maybe somebody can suggest something better?

    Cheers

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies