How to link to global via relationship field? #2100
Replies: 4 comments 2 replies
-
If you take a look at the link field group from our demo here, you could follow this structure and use the Or if you need to return the full data from the start page, you could conditionally render another field that uses a hook to fetch the data. What works best will depend on your use case, there are more ways to do this out there! |
Beta Was this translation helpful? Give feedback.
-
This would be a really nice addition, there is many reasons to have a relationship to a global other than just the URL. In my case we are wanting to get what projects are featured on that page. |
Beta Was this translation helpful? Give feedback.
-
We just ran into this problem as well. This seems like a huge oversight in payloads logic. Globals are perfect for single pages and being able to refer them anywhere in a relationship field seems like a basic requirement. |
Beta Was this translation helpful? Give feedback.
-
It would be great if Payload V3 could include this! |
Beta Was this translation helpful? Give feedback.
-
Gday,
I have the following problem:
I have a collection of content pages and a global called "startpage", which is basically a content page, but special.
I also have a link field, where users can select a page for internal linking.
How would I go about an internal link to the startpage, since globals can't be used in the relationship field?
Thanks for any hints!
Beta Was this translation helpful? Give feedback.
All reactions