Generate Backend Preview Template Command 

The command content-blocks:generate:editor-preview generates a backend backend preview Fluid template for the given Content Block and writes it to the templates/backend-preview.fluid.html file inside the Content Block directory. The file will not be overwritten unless --force is provided.

Arguments 

content-block

content-block
Required

true

Type

string

The Content Block to generate the backend preview template for (e.g. vendor/name).

Options 

force

force
Shortcut

f

Type

bool

Override a existing backend preview template file.

Generate a backend preview template for Content Block example/my-block:

vendor/bin/typo3 content-blocks:generate:backend-preview example/my-block
Copied!

Override a existing backend preview template:

vendor/bin/typo3 content-blocks:generate:backend-preview example/my-block --force
Copied!