From 01b94093e6a5a0b81a2a614bc68c6241ec403166 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Fri, 28 Nov 2025 09:58:02 +0100 Subject: [PATCH] feat: add builder doc (tpl) --- docs/utils/editors/builder.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/utils/editors/builder.md b/docs/utils/editors/builder.md index acc8706..fd1a27d 100644 --- a/docs/utils/editors/builder.md +++ b/docs/utils/editors/builder.md @@ -78,6 +78,17 @@ class YourPage extends Page } ``` +Create a template: + +```twig-inline title="templates/page/your_page/default.html.twig" +{% extends 'base.html.twig' %} + +{% block page %} + {{ _page.myBlock.value|block_to_html }} +{% endblock %} +``` + + ## Creating custom block The easy way is to run: `php bin/console make:builder-block`.