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

default discord avatar
xin-zelast year
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

  • Selected Answer
    discord user avatar
    jmikrut
    last year

    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. 👍

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.