How can I setup a widget in Studio that is not associated to a document field / schema ?

The long story :

I want to use a vocabulary suggestion widget that limits the entries of the search according to the user connected (sort of acls on entries).

This is an external directory holding thousands of entries.

I would have liked to use additionalOperationParameters as suggested in “Fun With the Suggestion Widget and JavaScript” blog entry but I can t use Automation Scripting (6.0) and I d rather filter right from the start (at query level), the number of resulting entries being too big (a thousand users * several thousand entries).

The quick and dirty solution I ve found is to add the user name in the searched field and the definition of the view that is queried.

But how can I add the current user to a widget in the UI so that it can be added to the search term ?

0 votes

0 answers

763 views

ANSWER