Create a Content Block skeleton

Create a Content Block skeleton in your terminal

This command creates a bare-minimum content block for your specified content-type (one of content-element, page-type or record-type). Required options are vendor, name and extension. Optionally, you can define a custom type identifier by providing the type option.


The type option is required and has to be an integer value, if you choose the page-type content type.

This will give you an overview of all available options:

vendor/bin/typo3 make:content-block --help

Example creating a Content Block skeleton in one line:

vendor/bin/typo3 make:content-block --content-type="content-element" --vendor="my-vendor" --name="my-name" --extension="my_sitepackage"

Alternatively, the command can guide you through the creation by omitting the required options:

vendor/bin/typo3 make:content-block

On non-composer installations use:

typo3/sysext/core/bin/typo3 make:content-block

Example interaction:

Choose the content type of your content block [Content Element]:
[content-element] Content Element
[page-type      ] Page Type
[record-type    ] Record Type
> content-element

Enter your vendor name:
> my-vendor

Enter your content block name:
> my-content-block-name

Choose an extension in which the content block should be stored:
[sitepackage] Test Package for content blocks
> sitepackage

After running the make command

In order to create the newly added database tables or fields, first you have to clear the caches and then run the database compare. You can do the same in the TYPO3 Backend by using the Database Analyzer. Repeat this step every time you add new fields to your Content Block definition.

vendor/bin/typo3 cache:flush -g system
vendor/bin/typo3 extension:setup --extension=my_sitepackage