docs icon indicating copy to clipboard operation
docs copied to clipboard

Variables / Field Names - How to use!

Open Lord-KalEl opened this issue 1 year ago • 6 comments

Describe the Request

I am trying to link different fields with each other, via variables ($Current_User) or via other fields. I came across the Javascript notation {{ }} by chance via the videos, but have not seen any documentation on it.

I would need more information on how this works and what limits it has.

Example: I want to make a filter by taking the data from another field via a Many to Many link. Concrete example: Table Group has 2 fields: Members and Moderators, both an M:M relationship with Directus_Users. You can only be a moderator if you are also in the Members field. So how can I say, please show me ONLY the users that are also in Members?

I can't find any documentation on this - if there is any, please accept my apologies. (You could also explain the filters better/clearer directly)

Maintenance Strategy

The documentation only needs to be adapted if new variables are added or the field syntax changes. However, both are very elementary parts of Directus that should be explained in any case.

Lord-KalEl avatar Sep 22 '24 08:09 Lord-KalEl