I have a page type with a field that uses a uniselector. I have the 'where' condition restricting to a single type of document. I'd like to also be able to restrict the uniselector to only documents where the path is relative to the current document.
eg: /somefolder/products/'Doc A' has the uniselector. I want to be able to select documents from /somefolder/products/options, so the relative path would be '../options/%'
/anotherfolder/taffy/'Doc B' is the same page type as 'Doc A'. The uniselector should look in /anotherfolder/taffy/options for documents.
I hope this makes sense!
Have you tried using a macro in the Where Condition to something like
NodeAliasPath like {% CurrentDocument.Parent.NodeAliasPath+"/options/%" |(identity)GlobalAdministrator%} ?
NodeAliasPath like {% CurrentDocument.Parent.NodeAliasPath+"/options/%" |(identity)GlobalAdministrator%}
This question was answered here in the scenario where you want it to work in the Edit or Form tabs.
NodeAliasPath LIKE '{% EditedObject.NodeAliasPath |(identity)GlobalAdministrator%}/%'
Please, sign in to be able to submit a new answer.