Skip to content

Commit

Permalink
Update layout.html.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
markus-moser authored Aug 6, 2024
1 parent 52475d7 commit 5fc7186
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions templates/layouts/layout.html.twig
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{# we're rendering the content block first to ensure that pimcore_head_* helper calls within all templates used within the content block are executed before the layout gets rendered #}
{% set content %}
{{ block('content') }}
{% endset %}
<!doctype html>
<html lang="{{ app.request.locale }}">
<head>
Expand Down Expand Up @@ -54,8 +58,7 @@
{% set isPortal = ((isPortal is defined) and isPortal) %}
{% endapply %}

{# we're using the deferred extension here to make sure this block is rendered after all helper calls #}
{% block layout_head_meta deferred %}
{% block layout_head_meta %}
{{ pimcore_head_title() }}
{{ pimcore_head_meta() }}

Expand All @@ -65,7 +68,7 @@

{% endblock %}

{% block head_stylesheets deferred %}
{% block head_stylesheets %}
{{ pimcore_head_link() }}
{% endblock %}

Expand Down Expand Up @@ -132,7 +135,7 @@


{% if isPortal %}
{{ block('content') }}
{{ content }}
{% else %}
<div id="content" class="container">
<div class="row">
Expand All @@ -159,7 +162,7 @@
{{ pimcore_render_nav(breadbrumbs, 'breadcrumbs') }}
</div>
{% endif %}
{{ block('content') }}
{{ content }}
</div>

{% if leftNavShow %}
Expand Down

0 comments on commit 5fc7186

Please sign in to comment.