Skip to content

Commit ed8e55f

Browse files
committedDec 20, 2024
feature #6658 Add block main_content_wrapper (MrBLT)
This PR was merged into the 4.x branch. Discussion ---------- Add block main_content_wrapper main-content is the only major section of layout.html.twig that is missing a wrapping block. This adds it in so we can add content before or after it. <!-- Thanks for your contribution! If you are proposing a new feature that is complex, please open an issue first so we can discuss about it. Note: all your contributions adhere implicitly to the MIT license --> Commits ------- b69a0e2 Add block main_content_wrapper
2 parents 81e468d + b69a0e2 commit ed8e55f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎templates/layout.html.twig

+2-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
<div id="sidebar-resizer-handler" class="resizer-handler resizer-handler-left"></div>
235235
</aside>
236236
</div>
237-
237+
{% block main_content_wrapper %}
238238
<section class="main-content">
239239
{% set has_search = ea.crud is not null and ea.crud.isSearchEnabled %}
240240
<aside class="content-top {{ has_search ? 'ea-search-enabled' : 'ea-search-disabled' }}">
@@ -376,6 +376,7 @@
376376
<div id="content-resizer-handler" class="resizer-handler resizer-handler-right"></div>
377377
</div>
378378
</section>
379+
{% endblock main_content_wrapper %}
379380
{% endblock wrapper %}
380381
</div>
381382
{% endblock wrapper_wrapper %}

0 commit comments

Comments
 (0)