Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relationship Field > Link to Globals #8854

Closed
robinscholz opened this issue Oct 24, 2024 · 3 comments
Closed

Relationship Field > Link to Globals #8854

robinscholz opened this issue Oct 24, 2024 · 3 comments
Assignees

Comments

@robinscholz
Copy link

robinscholz commented Oct 24, 2024

This is currently not supported, but seems like a bit of an oversight, since Globals appear to be what should be used for one-off data (i.e. a contact page with specific fields).

If for example you’d like to have some sort of a menu builder, it’d be crucial to pull in globals as an option in a relationship field.

There is already a related discussion here, though it seems stagnant: #2100.

Not sure how complicated this would be, but would be great if this could land with Payload V3.

@robinscholz
Copy link
Author

robinscholz commented Oct 24, 2024

#4650

Another related discussion pointing out alot of the caveats that come with bending a “page” collection to include different sets of data.

@PatrikKozak PatrikKozak self-assigned this Nov 7, 2024
@PatrikKozak
Copy link
Contributor

Hey @robinscholz - had a discussion about this with the team and while we see the potential benefits, we’re not currently planning to add support for referencing globals in relationship fields in the immediate roadmap.

The discussion you linked does dive into a few workarounds, which may help in some cases.

However, we completely understand the desire for flexibility and how this feature can extend that. So, while it’s not at the top of our priority list at the moment, we’d definitely welcome community PRs if this is something you’d like to explore further. And though there are no concrete plans for this at the moment, we're open to revisiting this down the line!

Thanks again for the feedback!

Copy link
Contributor

github-actions bot commented Nov 9, 2024

This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants