Using Arrays for a gallery

Create reusable components which content editors use to create their own feature-rich pages. To set up an array structure, you define the different components available. CloudCannon then provides editors the option to select one of the components when adding an item to the array. This adds that component to the array where they can then fill out the inputs.

For example, set the structure for new items in a gallery array with:

Configuration
_array_structures:
  gallery:
    style: modal
    values:
      - label: Image
        image: /path/to/source-image.png
        icon: image
        tags:
          - Media
          - Asset
        value:
          image: /uploads/placeholder.png
          caption:
      - label: External link
        icon: link
        tags:
          - Media
        value:
          url:
          title:
Was this article helpful? or Suggest an improvement >

Related articles