Skip to content

Variables / Field Names - How to use! #327

Open
@Lord-KalEl

Description

@Lord-KalEl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions