如何在 Directus 中显示多对多关系的标签?

How do I show a label on a many to many relationship in Directus?

我已经通过 directus 管理应用程序向 directus api 添加了有效的多对多关系,但是在 directus 应用程序中,当要将项目添加到集合时,select 选项没有被传播。我能够 select 项目并正确保存所有内容,所以我知道多对多关系设置正确,但我无法正确传播标签。我尝试了几种不同的方法,包括使用 .访问相关集合中字段的符号,但无济于事。

当使用点表示法时,关系永远不会加载,只会显示一个加载符号,而当在标签中不放置任何内容时有效,但没有标签。

下面是几张截图:

This is where i put in the label

This is one of the many to many relationships

This is the loading sign that never changes when using dot notation or anything in label.

我认为您不需要包含联结点 table(点符号),只需包含相关 table 中的字段名称,如下所示:name...对于模板,您需要使用模板字符串,如下所示:{{name}}

希望对您有所帮助!我们现在正在清理字段创建过程,以使其更加直观。

这对我有用。请不要将它与 DropDown 模板混淆

如果你想在directus 9中看到名字,在显示模板选项中是可以的。