Like what we’re doing? Star us on GitHub!

Can you specify the scope of other Documents, because I don't want to have articles embedded in articles

zhounewz
5 months ago
1 1

Can you specify the scope of other Documents, because I don't want to have articles embedded in articles

image

image

https://payloadcms.com/docs/fields/rich-text#relationship-element

  • jmikrut
    Payload Team
    last month

    Yes, you can use the admin.enableRichTextRelationship property. Set it to false for any collection you don't want to be able to link to.

    Right now, rich text uploads offer a bit more granularity here, as you can specifically whitelist collections to be able to select from on a field-by-field basis. But in the future we should be able to add more granularity to do this with rich text relationships too. 👍

Open the post
Continue the discussion in GitHub
Can't find what you're looking for?
Get help straight from the Payload team with an Enterprise License.Learn More