Skip to content

Commit

Permalink
feature #6658 Add block main_content_wrapper (MrBLT)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
javiereguiluz committed Dec 20, 2024
2 parents 81e468d + b69a0e2 commit ed8e55f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
<div id="sidebar-resizer-handler" class="resizer-handler resizer-handler-left"></div>
</aside>
</div>

{% block main_content_wrapper %}
<section class="main-content">
{% set has_search = ea.crud is not null and ea.crud.isSearchEnabled %}
<aside class="content-top {{ has_search ? 'ea-search-enabled' : 'ea-search-disabled' }}">
Expand Down Expand Up @@ -376,6 +376,7 @@
<div id="content-resizer-handler" class="resizer-handler resizer-handler-right"></div>
</div>
</section>
{% endblock main_content_wrapper %}
{% endblock wrapper %}
</div>
{% endblock wrapper_wrapper %}
Expand Down

0 comments on commit ed8e55f

Please sign in to comment.