Recent searches

in

Choose the asset sources for inputs and Editable Regions

Last modified: December 3rd, 2026

On this page

Permissions required

Members of the Owners, Developers, Technical Editors, and Partner Default Permission Groups, or Custom Permission Groups with the site:source-editor:write and site:file:write permissions, can edit your CloudCannon Configuration File.

The allowed_sources option chooses which asset sources an input, Editable Region, or the Content Editor lets Organization Members upload to and select from. An asset source is your Site files, a DAM connected to your Site, or an Asset Browser. For what asset sources are and what Organization Members see when one is unavailable, please read our documentation on what an asset source is.

For what Organization Members see when they upload or select a file, please read our documentation on what a File Input is and what the Asset Browser is.

Asset sources#

Each value in allowed_sources is site-files, the Reference Key of a DAM connected to your Site, or the key of an assets_config entry. If you leave out allowed_sources, Organization Members can upload to and select from your Site files and every DAM connected to your Site, but no Asset Browsers. For what each value refers to, and what Organization Members see when an asset source is unavailable, please read our documentation on what an asset source is.

Choose asset sources for an input#

File Inputs, URL Inputs, and Rich Text Inputs take the allowed_sources option. These instructions assume you have already configured the input's type. For more information, please read our documentation on configuring a File Input, URL Input, or Rich Text Input.

Choose asset sources for an input with Configuration Mode

Configuration Mode lets you update your CloudCannon Configuration File from the pages it configures in CloudCannon. For more information, please read our documentation on what Configuration Mode is.

To choose the asset sources for an input using Configuration Mode:

  1. Open a file that contains the input you want to configure. CloudCannon will open the file in an editing interface.
  2. Click the Configuration Mode switch on the right of the Editing Interface Header to turn it on. Purple Edit buttons will appear above your inputs.
  3. Click the Edit button above the input. CloudCannon will open the Edit Input Data Panel, with a Card for each place in the Configuration Cascade that configures the input.
  4. Click the Card for the input under the level you want to change, such as Site, or click the Add [Level] input configuration button if that level has no Card. CloudCannon will open the input's configuration.
  5. Click the options Card for the input's type, such as File Options. CloudCannon will open the input's options.
  6. Click the Add Allowed Source button. CloudCannon will add a field to the Allowed Sources list.
  7. Enter an asset source in the new field, such as product_images.
  8. (Optional.) Repeat steps 6 and 7 for each other source you want the input to use.

Organization Members will be able to upload to and select from those asset sources through the input. Your new allowed source is an unsaved change to the file that holds that level of configuration, such as your CloudCannon Configuration File for the Site level. To keep it, save your changes.

A screenshot of the Edit Input Data Panel for the hero_image input at the Site level shows the File Options, with product_images, newsletter_pdfs, and brand_library under Allowed Sources and the Add Allowed Source button.
The Allowed Sources list in the Edit Input Data Panel

Choose asset sources for an input from your Configuration File

To choose the asset sources for an input from your CloudCannon Configuration File:

  1. Navigate to your File Browser and open your CloudCannon Configuration File in the Source Editor, or open it in your local development environment.
  2. Find your input's configuration under the _inputs key.
  3. Add the allowed_sources key under the input's options, if the input doesn't already have one.
  4. Add each asset source you want the input to use to allowed_sources, such as product_images.
  5. Save your CloudCannon Configuration File, or commit and push it if you edited it locally.

Organization Members will be able to upload to and select from those asset sources through the input.

Copied to clipboard
_inputs:
  hero_image:
    type: image
    options:
      allowed_sources:
        - product_images
        - brand_library
{
  "_inputs": {
    "hero_image": {
      "type": "image",
      "options": {
        "allowed_sources": [
          "product_images",
          "brand_library"
        ]
      }
    }
  }
}

The hero_image input is configured with the Asset Browsers for the product_images and brand_library entries. Site files will appear in the Upload files modal, but Organization Members will not be able to choose it.

Choose asset sources for Editable Regions and the Content Editor#

An Editable Region uses the allowed_sources option of the input for the key it edits:

  • Image Editable Regions — The input for the image's src key, which is the key in the data-prop-src attribute, or the src key under the key in the data-prop attribute.
  • Text and block Editable Regions — The input for the key in the data-prop attribute. If that input has no options, the region uses the options under _editables.text or _editables.block instead.

To choose the asset sources for one of these Editable Regions, follow the steps for an input for the key it edits. For more information, please read our documentation on what Editable Regions are.

The Content Editor, and Editable Regions that edit the body content of a file, take allowed_sources from the content key under _editables. You can set _editables at any level of the Configuration Cascade. For more information, please read our documentation on configuring your rich text editors.

To choose the asset sources for the Content Editor:

  1. Navigate to your File Browser and open your CloudCannon Configuration File in the Source Editor, or open it in your local development environment.
  2. Add the top-level _editables key, if your file doesn't already have one.
  3. Add the content key under _editables, if it doesn't already have one.
  4. Add the allowed_sources key under content, with each asset source you want it to use.
  5. Save your CloudCannon Configuration File, or commit and push it if you edited it locally.

Organization Members will be able to upload to and select from those asset sources in the Content Editor, or in an Editable Region that edits the body content of a file. Setting allowed_sources does not change which tools appear in the WYSIWYG toolbar.

Copied to clipboard
_editables:
  content:
    allowed_sources:
      - site-files
      - product_images
{
  "_editables": {
    "content": {
      "allowed_sources": [
        "site-files",
        "product_images"
      ]
    }
  }
}

The Content Editor is configured with your Site files and the Asset Browser for the product_images entry.

How an Asset Browser's settings combine with an input's or Editable Region's#

When an input, Editable Region, or the Content Editor lists an Asset Browser in allowed_sources, the entry's disable_upload_file, disable_file_actions, and options apply first, and the options of the input, Editable Region, or Content Editor override them. For the full order, and how to turn an action back on for one input, please read our documentation on configuring an Asset Browser.

Related Resources

Open in a new tab