There's no information in the Directus documentation so I checked if the relational field "Tree view" works for displaying multi-level children of that item. I created first table Test, added string field name to it and then created "Many to One" relationship to the same table and named the "key" as parent_id. Now, I created relational field "Tree view" again to the same Test collection and set the "Foreign key" as parent_id. Display template I picked for the both Name.
然后我创建了以下树:https://i.stack.imgur.com/VgBRb.png将项目“二”的父项设置为“一”,将项目“三”的父项设置为“二”等.当我打开项目“One”时,它看起来符合预期: https: //i.stack.imgur.com/WOqXW.png
| 归档时间: |
|
| 查看次数: |
1223 次 |
| 最近记录: |