Copied to clipboard

Flag this post as spam?

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


  • David McDonnell 53 posts 251 karma points
    Apr 21, 2020 @ 10:21
    David McDonnell
    0

    Multinode tree picker XPath root item

    I have a site where the tree looks something like the following: The site has no specific root item

    -Content
        -Page1
        -Page2
        -Data
          -Countries
             -Country1
             -Country2
             -Country3
             -Country4
    

    I want to set the root of the tree picker to be the folder countries via XPath, but cannot get it to appear, always returns all items

    I have tried $root/Data/Countries and lots of other combinations, any help would be appreciated.

    This is only for picking content in the CMS

  • Renante 9 posts 125 karma points
    Apr 21, 2020 @ 14:53
    Renante
    0

    Hi David,

    Have you tried converting it to lowercase like this? $root/data/countries

    I think the xpath query is case sensitive.

  • David McDonnell 53 posts 251 karma points
    Apr 21, 2020 @ 16:09
    David McDonnell
    0

    Hi Renante,

    Thanks for the suggestion have tried lowercase no joy.

    Should the xpath be the folder names or the alias?

    Data folder alias is: folderData Countries folder alias is: folderCountries Country alias is: dataCountry

    i just need to get the list of countries, I'm sure I have done this before but nothing will work

  • Renante 9 posts 125 karma points
    Apr 21, 2020 @ 16:14
    Renante
    0

    Yes it should be the alias @David. (though you can use the name for query, but alias is straightforward)

  • David McDonnell 53 posts 251 karma points
    Apr 21, 2020 @ 16:23
    David McDonnell
    0

    so should it be?

    $room/folderdata/foldercountries

  • Renante 9 posts 125 karma points
    Apr 21, 2020 @ 16:27
    Renante
    0

    Nope, you have to keep it camelCase.

    So it should be $root/folderData/folderCountries

  • David McDonnell 53 posts 251 karma points
    Apr 21, 2020 @ 16:31
    David McDonnell
    0

    That isn't working either :(

  • Renante 9 posts 125 karma points
    Apr 21, 2020 @ 16:49
    Renante
    0

    Have you tried clearing the cache at Settings > Published Status tab?

    Otherwise, we'll have to wait for the experts to comment here.

Please Sign in or register to post replies

Write your reply to:

Draft