I get an error if I try to use the xpath 'current()' function in a sitecore query inside a nested expression, something like this:
/sitecore/content/Home/Topics/*[contains(current()/@MainTopics, @@id)]
What I am trying to do is, use this query as a source for my DropLink field to only list 'Topic' items that are already selected in another 'MainTopics' field in the same item.
But this gives me an error, something like ")" expected at position 50
So looks like current()
function cannot be used inside the nested expression, or entirely. If not, is there any way to reference the current node and not the context node from within a nested expression?
Any ideas?