Records and files 

Creating new records follows a default scheme. A table is defined as a property type on the root level and contains an array of records. Properties for each record can be added using the database column names.

pages:
  - identifier: home
    pid: "{pages:root}"
    sorting: 100
    doktype: 1
    title: Home
    # Slugs are generated automatically for pages
    is_siteroot: 1

tt_content:
  - identifier: example
    pid: "{pages:home}"
    CType: heaader
    header: My example content
    header_layout: 1
Copied!

Files 

Defining files is a special case. All files are added to the defined storage using FAL method including meta data extractors.

Assuming the source file is located at <project-root>/data/files/example.jpg
sys_file:
  - identifier: example_jpg
    source: 'data/files/example.jpg'
    storage: default
    folder: placeholder/
Copied!
Name Type Required
string true
string true
string true
string true

identifier

identifier
Type
string
Required

true

A unique identifier for this file.

source

source
Type
string
Required

true

Path to the file relative to project root or with EXT: prefix.

storage

storage
Type
string
Required

true

The identifier for the storage that should be used. See FAL storage options.

folder

folder
Type
string
Required

true

The target directory where the file is copied. Relative to storage base path. Directory is created if is does not exist.