mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-12 00:09:44 +00:00
Render for title
This commit is contained in:
@@ -68,6 +68,7 @@ services:
|
||||
class: Chill\CustomFieldsBundle\CustomFields\CustomFieldTitle
|
||||
arguments:
|
||||
- "@request_stack"
|
||||
- "@templating"
|
||||
tags:
|
||||
- { name: 'chill.custom_field', type: 'title' }
|
||||
|
||||
|
5
Resources/views/CustomFieldsRendering/title.html.twig
Normal file
5
Resources/views/CustomFieldsRendering/title.html.twig
Normal file
@@ -0,0 +1,5 @@
|
||||
{% if type == "title"%}
|
||||
<h2>{{ title[app.request.locale] }}</h2>
|
||||
{% else %}
|
||||
<h3>{{ title[app.request.locale] }}</h3>
|
||||
{% endif %}
|
Reference in New Issue
Block a user