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

hide_extra_inputs

Table of contents

Description:

This key toggles whether CloudCannon will hide inputs that are not present in a Structure from the Data Editor.

Setting this key to true will hide inputs that are not present in a Structure from the Data Editor. Hiding these inputs does not delete the data. You can see non-structure data keys by opening a file in the Source Editor. This key has no effect if remove_extra_inputs is true.

You can also configure this behavior for specific values of a Structure using values[*].hide_extra_inputs.

Appears in:
└── Structure
    └── hide_extra_inputs
Type:
boolean
Default value:
false
Examples:

In this example, we don't want inputs outside of those listed in the Structure (e.g., old inputs from deprecated versions of this Structure) to appear in the Data Editor.

Copied to clipboard
_structures:
  related_articles:
    hide_extra_inputs: true
    values:
      - value: 
        name: 
        description: 
        url:
{
  "_structures": {
    "related_articles": {
      "hide_extra_inputs": true,
      "values": [
        {
          "value": null,
          "name": null,
          "description": null,
          "url": null
        }
      ]
    }
  }
}
Open in a new tab