Add the table list component to the relationship field #2023
ToneseekerMusical
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Having the option to display documents in a relationship field in the table list component would be incredibly useful for fields with a large number of relationships, allowing for easy viewing and management (when bulk operations are added) of the contained information.
Now, relationship fields that contain relationships from multiple collections that have different datasets could get messy, so it should be only allowed to be used on relationship fields that pull from one collection, or where the collections share an arbitrary minimum number of fields other than
_id
. Some relationship fields this could be used on would be wholesale and retail orders, user role based profiles, and products in different categories that share a common parent category.The default values of the
admin:display
option would dynamically change based on thehasMany
flag and the type value of therelationTo
field. IfhasMany
is set totrue
, andrelationTo
is astring
then it should default to the table list, all others should default to the current relationship field. IfhasMany
is set totrue
butrelationTo
is an array, having display set totable
should throw an error if the data structure of the collections doesn't match at least X fields other than_id
.If
hasMany
is set totrue
andrelationTo
is an array, the columns that can be shown in the table should be limited to only the fields the two collections have in common.Beta Was this translation helpful? Give feedback.
All reactions