Generate Backend Preview Template Command
The command
content- generates a
backend backend preview Fluid template for the given Content Block and writes it
to the templates/ file inside the Content
Block directory. The file will not be overwritten unless
-- is
provided.
Arguments
content-block
-
- Required
-
true
- Type
-
string
The Content Block to generate the backend preview template for (e.g.
vendor/).name
Options
force
-
- Shortcut
-
f
- Type
-
bool
Override a existing backend preview template file.
Generate a backend preview template for Content Block example/:
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!