Enable assigning parent via join field from child document edit view #12865
cristianmihok
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.
-
Note
: I have searched for similar discussions but none of them were touching this particulare use case.Currently, Payload’s
join
field is a powerful way to create bidirectional relationships between collections (e.g.,Order
↔Product
) without duplicating data. However, join fields are inherently non editable, particularly from the child side of the relationship.We are requesting support for making join fields editable on the child collection’s admin edit view, to allow authors to assign or change the parent document (e.g., add a Product to an Order) directly from the child document without needing to edit the parent.
Use Case
Product
admin page allow a content manager to select or update the relatedOrder
.Proposed Solution
Allow join fields to be optionally editable from the child collection by adding a new admin config option such as editble: true.
This would:
Desired Behavior
Thanks to the Payload team for building such a thoughtfully designed and developer-friendly CMS. I enjoy working with Payload; it’s been a pleasure using it in production. Looking forward to what's coming next!
Beta Was this translation helpful? Give feedback.
All reactions