-
Hi, {
type: 'relationship',
name: 'internal',
label: 'Document to link to',
relationTo: ['pages', 'posts'],
} ... for the richText field. Sorry, maybe I'm missing something but I couldn't find anything in the docs nor in this forum. As you can see here in the first screenshot I can't select anything from the Posts collection. |
Beta Was this translation helpful? Give feedback.
Answered by
unonweb
Feb 16, 2023
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
unonweb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alright, I've got it: It has to do with the order of the collections in payload.config.ts
In the first example from within the pages collection richText fields can only link to Media, MediaCategories and Pages
In this example from within the pages collection richText fields can link to Media, MediaCategories, Pages, Posts and PostsCategories
If this behaviour is intended I think it should be described in the docs.