update the default template
This commit is contained in:
parent
906af9d44d
commit
2931adb8ae
|
@ -20,8 +20,6 @@
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{{ dump(node.attributes) }}
|
|
||||||
|
|
||||||
{% if node.children|length %}
|
{% if node.children|length %}
|
||||||
<ul>
|
<ul>
|
||||||
{% for child in node.children %}
|
{% for child in node.children %}
|
||||||
|
@ -58,6 +56,8 @@
|
||||||
<img src="{{ asset(image) }}" alt="">
|
<img src="{{ asset(image) }}" alt="">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<h1>Request</h1>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
Node: {{ _node.label }}
|
Node: {{ _node.label }}
|
||||||
|
@ -68,12 +68,29 @@
|
||||||
<li>
|
<li>
|
||||||
Navigation: {{ _navigation.label }}
|
Navigation: {{ _navigation.label }}
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
Locale:
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Navigation: {{ _navigation.locale }}
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Request: {{ app.request.attributes.get('_locale') }}
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Test: {{ 'This is a test of translation'|trans }}
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h4>Menu</h4>
|
<h1>Menus</h1>
|
||||||
|
|
||||||
{% set menu = _navigation.menu('top') %}
|
{# {% set menu = _navigation.menu('top') %} #}
|
||||||
|
|
||||||
|
{% for menu in _navigation.menus %}
|
||||||
|
<h2>{{ menu.label }} / {{ menu.code }}</h2>
|
||||||
|
|
||||||
{% if menu %}
|
|
||||||
{{ macros.menu(menu, _store) }}
|
{{ macros.menu(menu, _store) }}
|
||||||
{% endif %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue