Custom blocks
Define your own block types with fields and a template.
When the built-in blocks aren't quite right, an administrator can define a custom block type, for example a “Council member” card or a “Road closure” notice.
1. Define the fields
Give each field a name, a label and a type such as text, long text, link or image, and say whether it needs a French version.
2. Write the template
The template is HTML with placeholders such as {{ name }}. Values typed by staff are escaped automatically, so a field can't inject code into your site.
3. Use it
Your new block appears under Custom in the block picker on every page.