Using YAML, you are able to customize a workflow for content editors using the cms.
While this is a very powerful system, there are some limitations to watch out for.
Keep in mind that this is replacing the use of a database for the purposes of structuring data. So it does need to be very specific by necessity.
- YAML is whitespace sensitive, indentation matters for correct code rendering
- Collections need to have a name
- Specify
create: trueif you want new collections to be able to be added - nest fields using the list widget
- Names can only be used once
- You must specify a folder for the files to be created in.
- A folder will be created when the collection is used for the first time
- You can wrap fields in utility fields to make it so the user can move them around in the editor
- Comments are made using #
- Use comments to organize your code
Review the config.yml file, it shows proper use case for yml syntax when writing your fields.