Open edvincandon opened 4 years ago
Adding link to the preview in the description :)
This looks great, it would be a huge help for stuff like tag management similar to other CMSes.
:+1:
It looks really great, how do you deal with required fields? It seems to only work for Collection Types without any required and relational fields. Could you confirm this?
Great job, thank you very much 👏
It seems to only work for Collection Types without any required and relational fields. Could you confirm this?
Hey @Aurelsicoko - Yes exactly, in my use-case I didn't have to handle such Collection Types.
I figure this could be handled by scanning the target Collection Type and making sure :
mainField
mainField
is not a relational field (although this condition is already met here : https://github.com/strapi/strapi/blob/c90e3eb67bf2c235c2fdd1b5607eda6b649d9f10/packages/strapi-plugin-content-manager/admin/src/components/SettingsViewWrapper/index.js#L106-L126)If the feature was activated by default (without the user ticking an option in the settings), maybe this could be the condition to allow it ?
It seems to only work for Collection Types without any required and relational fields. Could you confirm this?
Hey @Aurelsicoko - Yes exactly, in my use-case I didn't have to handle such Collection Types.
I figure this could be handled by scanning the target Collection Type and making sure :
- there are no required fields other than the collection's
mainField
- the
mainField
is not a relational field (although this condition is already met here : https://github.com/strapi/strapi/blob/c90e3eb67bf2c235c2fdd1b5607eda6b649d9f10/packages/strapi-plugin-content-manager/admin/src/components/SettingsViewWrapper/index.js#L106-L126)If the feature was activated by default (without the user ticking an option in the settings), maybe this could be the condition to allow it ?
I could see this being a common usecase with a manyWay
relation type, but yeah the required fields would be a problem. Maybe we could have some kind of slider or popout/up window if there is more than one field (think how Ghost works? )
This RFCS adresses https://github.com/strapi/strapi/issues/4948 in a slightly different way. I came across the same limitation on a strapi project recently and I tackled it myself..
If this feature ever lands in your backlog, I would gladly help :)
Thank you for reading
Preview Link: here