Content Elements

Folder: ContentBlocks/ContentElements.

Content Elements are a special Content Type in TYPO3. The basic structure is already defined in the TYPO3 Core. Content Blocks only adds new types to it. A minimal Content Element looks like this:

EXT:your_extension/ContentBlocks/ContentElements/cta/EditorInterface.yaml
 name: example/cta
 fields:
   - identifier: header
     useExistingField: true

In case you need the well-known Appearance tab back, you can add pre-defined Basics to your definition:

EXT:your_extension/ContentBlocks/ContentElements/cta/EditorInterface.yaml
 name: example/cta
 basics:
     - TYPO3/Appearance
     - TYPO3/Links
 fields:
   - identifier: header
     useExistingField: true

The Appearance tab will then be added after all your custom fields.