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

reorder_inputs

Table of contents

Description:

This key toggles whether CloudCannon will reorder inputs in a file to match the order defined in a given Structure.

Setting this key to false will preserve the existing order of inputs in a file, regardless of the order defined in the Structure.

By default, this key is true (i.e., inputs are reordered to match the Structure).

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

Appears in:
└── Structure
    └── reorder_inputs
Type:
boolean
Default value:
true
Examples:

In this example, we want to preserve the order of the inputs in a file over the order in the associated Structure.

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