Hello Strapi community,
Using Strapi v4 I have the following use case :
My contributor creates website pages with various content types.
In content type A, I want him to be able to link a content to another content from another content type using a relation field.
However Strapi does not provide an out of the box “universal” relation field (ie: a field that allows to create a relation with a content from any content type).
Solutions I can see are :
-
create in my content type A a specific relation field for each content type.
However it does not seems very user friendly as the contributor would have a lot of select -
create a custom “conditionnal” field to allow the user to specify first the type of content he wants to link with and create the relation.
However relations are not supported in custom field -
create a polymorphic relation field that could handle several tables in a relation.
However I can’t find a documentation to do this properly
Is the any recommanded way ? I will appreciate any hint !
Thanks
This topic has been created from a Discord post (1290986849497518181) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord