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.

How could let upload in RichText relate to specific "upload collection"?

default discord avatar
sunricestudio2 years ago
3

How could let upload in RichText relate to specific "upload collection"?


When I have mulitiple upload collections.


Don't show selector at admin panel.

  • default discord avatar
    notchr2 years ago

    Good afternoon

    @428538980921901056

    - I'm not 100% sure, but I know the documentation for configuring Rich Text Uploads can be found here

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

    If that does not help you resolve your issue, I am happy to help debug.

  • discord user avatar
    tylandavis
    2 years ago
    @428538980921901056

    Add the following code to the config of the collections you

    don't

    want to include as relationships/uploads in your rich text editor:


    admin: {
      enableRichTextRelationship: false,
    },


    You can do the same thing for links:


    admin: {
      enableRichTextLink: false,
    },
  • default discord avatar
    sunricestudio2 years ago
    @783701636165402624

    It's what I want. Thanks you.

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.