最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

many to many - How to choose manually from a collection subset in strapi admin panel - Stack Overflow

programmeradmin3浏览0评论

I am building a back office with strapi. I don't have any special config/plugins.

I would like to have a private list storing all skills (AllSkill) (a skill is an image and a name). In order to do so, I created a private collection.

Then I want to have a public collection (MySkill), that have multiple fields. For each field, it should contain a sub set of AllSkill. In order to do so, I tried to link all the fields of MySkill, with having a relation to AllSkill (I first tried with Many to Many for the sake of simplicity).

However, instead of being able to select a subset of skills, I can only select a relation

How can I be able to select a sub set of AllSkill in MySkill ?

The more global goal I want to achieve, is to be able to make grow the AllSkill independantly from MySkill (because I could also return a skill in other endpoints) So I want to have this private collection AllSkill, where I have all skills referenced, and then for instance in the public MySkill, I return only subsets of those skills. And in an other endpoint, Project, I can also return a subset of AllSkill

I am building a back office with strapi. I don't have any special config/plugins.

I would like to have a private list storing all skills (AllSkill) (a skill is an image and a name). In order to do so, I created a private collection.

Then I want to have a public collection (MySkill), that have multiple fields. For each field, it should contain a sub set of AllSkill. In order to do so, I tried to link all the fields of MySkill, with having a relation to AllSkill (I first tried with Many to Many for the sake of simplicity).

However, instead of being able to select a subset of skills, I can only select a relation

How can I be able to select a sub set of AllSkill in MySkill ?

The more global goal I want to achieve, is to be able to make grow the AllSkill independantly from MySkill (because I could also return a skill in other endpoints) So I want to have this private collection AllSkill, where I have all skills referenced, and then for instance in the public MySkill, I return only subsets of those skills. And in an other endpoint, Project, I can also return a subset of AllSkill

Share Improve this question asked Feb 7 at 16:15 TheTisibothTheTisiboth 1,6511 gold badge7 silver badges17 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

For some reason, having only a component in AllSkill was causing an issue. If I try to set up an other "fixed" field, like name like this:

ANd then in the content manager, I have to edit the view for MySkill, like this, so it doesn't show the id, but rather the name:

And that is it, now I am able to choose multiple skills in MySkill, that are related to AllSkill

发布评论

评论列表(0)

  1. 暂无评论