☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

href

Table of contents

Description:

This key defines the link for a URL option in the + Add button dropdown.

The value is a string that specifies a URL. Values can be an external URL or an internal URL relative to the current Site.

This key is required for URL add options in the collections_config.*.add_options array.

Appears in:
└── collections_config
    └── *
        └── add_options
            └── [*]
                └── HREF Add Option
                    └── href
Type:
string Required
Examples:

In this example, the + Add button dropdown in the team Collection browser uses a link option with the URL https://forms.gle/xxxxxxx.

Copied to clipboard
collections_config:
  team:
    add_options:
      - name: Submit Form
        icon: assignment_add
        href: https://forms.gle/xxxxxxx
{
  "collections_config": {
    "team": {
      "add_options": [
        {
          "name": "Submit Form",
          "icon": "assignment_add",
          "href": "https://forms.gle/xxxxxxx"
        }
      ]
    }
  }
}
Open in a new tab