1. The Field Plugins Object

The Field Plugins Object

Properties

  • id

    number

    Numeric ID of your field plugin

  • name

    string

    Given name of your field plugin. Needs to be unique. A personal prefix is recommended (Example: my-geo-selector).

  • body

    string

    The uncompiled JavaScript code of the field plugin.

  • compiled_body

    string

    Used by the online code editor. Needs to be an empty string if using local plugin development.

  • space_ids

    number[]

    Array of space ids where the field plugin is assigned to.

Example Object
{
  "field_type": {
    "id": 124,
    "name": "my-geo-selector",
    "body": "var Fieldtype = {}",
    "compiled_body": "",
    "space_ids": []
  }
}