/october-schemas

October CMS autocomplete for YAML files

MIT LicenseMIT

JSON Schemas of October CMS config files

Form fields fields.yaml

The form fields configuration is used for creating backend forms

fields.yaml schema URL:

https://raw.githubusercontent.com/inetis-ch/october-schemas/master/fields.json

October CMS documentation

Lists columns columns.yaml

The column configuration is used for creating backend record list

columns.yaml schema URL:

https://raw.githubusercontent.com/inetis-ch/october-schemas/master/columns.json

October CMS documentation


Setup your IDE for autocomplete

PhpStorm

Open Settings/Preferences dialog, go to Languages & Frameworks | Schemas and DTDs | JSON Schema Mappings.
Add new json schema and specify :

  • a name (what you want)
  • the URL (see above),
  • schema version 7

add mapping "file path pattern" and set the file name (e.g. fields.yaml)

Documentation

Visual Studio Code

{
    "yaml.schemas": {
        "https://raw.githubusercontent.com/inetis-ch/october-schemas/master/fields.json": [
            "fields.yaml"
        ],
        "https://raw.githubusercontent.com/inetis-ch/october-schemas/master/columns.json": [
            "columns.yaml"
        ]
    }
}