Generate Frontend Template Command 

The command content-blocks:generate:frontend-template generates a frontend Fluid template for the given Content Element Content Block and writes it to the templates/frontend.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 frontend template for (e.g. vendor/name).

Options 

force

force
Shortcut

f

Type

bool

Override an existing frontend template file.

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

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

Override an existing frontend template:

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