Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

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

default discord avatar
blueMountain0072 years 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

  • Selected Answer
    discord user avatar
    jmikrut
    2 years ago

    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 dedicated engineering support directly from the Payload team.