Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
Hi David,
Have you tried converting it to lowercase like this? $root/data/countries
I think the xpath query is case sensitive.
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
Yes it should be the alias @David. (though you can use the name for query, but alias is straightforward)
so should it be?
$room/folderdata/foldercountries
Nope, you have to keep it camelCase.
So it should be $root/folderData/folderCountries
$root/folderData/folderCountries
That isn't working either :(
Have you tried clearing the cache at Settings > Published Status tab?
Otherwise, we'll have to wait for the experts to comment here.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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
Hi David,
Have you tried converting it to lowercase like this? $root/data/countries
I think the xpath query is case sensitive.
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
Yes it should be the alias @David. (though you can use the name for query, but alias is straightforward)
so should it be?
$room/folderdata/foldercountries
Nope, you have to keep it camelCase.
So it should be
$root/folderData/folderCountries
That isn't working either :(
Have you tried clearing the cache at Settings > Published Status tab?
Otherwise, we'll have to wait for the experts to comment here.
is working on a reply...