소스 검색

Add blocks before and after main navigation

This commit adds two blocks before and after main navigation.

I will use this to add :

- locale switcher for admin
- store switcher
.....
Nicolas Bastien 11 년 전
부모
커밋
f720aaf0a6
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      Resources/views/standard_layout.html.twig

+ 5 - 0
Resources/views/standard_layout.html.twig

@@ -116,6 +116,8 @@ file that was distributed with this source code.
                             </a>
                         {% endblock %}
 
+                        {% block sonata_nav_menu_before %}{% endblock %}
+
                         {% block sonata_nav_menu %}
                             <div class="nav-collapse">
                                 <ul class="nav">
@@ -168,6 +170,9 @@ file that was distributed with this source code.
 
                             </div>
                         {% endblock %}
+                        
+                        {% block sonata_nav_menu_after %}{% endblock %}
+                        
                     {% endif %}
                 </div>
             </div>