I am following this article to extend treelist field - https://jammykam.wordpress.com/2016/01/06/specifying-query-and-parameters-for-sitecore-treelist-field-source/.
We want to have a treelist field with support of query and other datasource parameters. But adding a query with token is causing issue.
This query is working - datasource=query:$site/Data/Topic
Whereas this is not - datasource=query:$sharedSites/Data/Topic
This is because $sharedSites
token is getting converted to lowercase and its not getting resolved. Do we have any way of handling this with modifying the query?
CompareCaseInsensitive
method for this. Did you try?