feat: add builder doc (tpl)
This commit is contained in:
parent
df720a1c55
commit
01b94093e6
1 changed files with 11 additions and 0 deletions
|
|
@ -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`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue