[TEMPLATES] Add dynamic blocks to right panel
This commit is contained in:
parent
4bd081ad27
commit
2d8d8ffb48
@ -7,7 +7,15 @@
|
||||
<div> </div>
|
||||
</div>
|
||||
<div>
|
||||
{% block right %}
|
||||
{% endblock right %}
|
||||
{% set current_path = app.request.get('_route') %}
|
||||
{% if right_panel_vars is defined %}
|
||||
{% for block in handle_event('AppendRightPanelBlock', {'path': current_path, 'vars': right_panel_vars}) %}
|
||||
{{ block | raw }}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% for block in handle_event('AppendRightPanelBlock', {'path': current_path}) %}
|
||||
{{ block | raw }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user