Skip to content

How to show the names of related existing items? #35

Answered by formfcw
willemmulder asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks, this is a really good question. Even though it is a Directus related question, I will try my best to answer it here.

If you were just relating to a single page, it would be easy because you would use an M2O field instead and just use the title of the M2O item.

It gets more complex with a M2M or M2A field.

The fact, that Pages > Pages ID > Title shows a -- seems to be a bug in Directus. But either way it would not be the solution because it would show a X items button, which would open a popover with the titles.

If you want to display the titles directly, you need to create a custom display extension or an action-hook or a flow (on create + update) that computes the titles into a n…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@willemmulder
Comment options

Answer selected by formfcw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants