strapi / rfcs

RFCs for Strapi future changes
70 stars 33 forks source link

Quick entry creation in relation fields #14

Open edvincandon opened 4 years ago

edvincandon commented 4 years ago

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

alexandrebodin commented 4 years ago

Adding link to the preview in the description :)

derrickmehaffy commented 4 years ago

This looks great, it would be a huge help for stuff like tag management similar to other CMSes.

:+1:

Aurelsicoko commented 4 years ago

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 👏

edvincandon commented 4 years ago

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 :

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 ?

derrickmehaffy commented 4 years ago

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 :

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? )

strapi-cla commented 3 years ago

CLA assistant check
All committers have signed the CLA.