How to get uniselector form control to limit documents to a relative path?

Lance Keay asked on August 31, 2017 16:23

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!

Recent Answers


Trevor Fayas answered on August 31, 2017 17:57 (last edited on December 10, 2019 02:31)

Have you tried using a macro in the Where Condition to something like

NodeAliasPath like {% CurrentDocument.Parent.NodeAliasPath+"/options/%" |(identity)GlobalAdministrator%} ?

0 votesVote for this answer Mark as a Correct answer

Michael Eustace answered on November 27, 2017 22:59 (last edited on December 10, 2019 02:31)

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%}/%'

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.