I am using the UniSelector on a page type field to display multiple documents, except I only want child documents of the current page to be listed for the CMS Editor to select.
In the WHERE clause of the UniSelector control settings I am entering the following:
NodeAliasPath LIKE '{% CurrentDocument.NodeAliasPath #%}/%'
but the macro is not returning as the control then displays all documents in the site tree.
What is the correct syntax for this? I followed the answer here too but is doesn't work for me either.
Thanks, Michael
If you're needing it to work in the Editor/Form tab, then use
EditedObject.NodeAliasPath instead of CurrentDocument.NodeAliasPath.
EditedObject.NodeAliasPath
CurrentDocument.NodeAliasPath
The CurrentDocument context is only available on the live site and not within the Kentico UI.
CurrentDocument
Thanks Brendan. Yes I am needing it to work in the Form tab. Works perfectly.
Please, sign in to be able to submit a new answer.