Skip to content

Commit

Permalink
Layout - Fix creating blank page snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
dvesh3 authored and aryaantony92 committed Aug 2, 2022
1 parent 649fb2e commit 5648353
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions templates/layouts/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,19 @@
{% set document = document.getObject() %}
{% endif %}

{% if document.getTitle() is not empty %}
{% do pimcore_head_title().set(document.getTitle()) %}
{% endif %}
{% if document is instanceof('\\Pimcore\\Model\\Document\\Page') %}
{% if document.getTitle() is not empty %}
{% do pimcore_head_title().set(document.getTitle()) %}
{% endif %}

{% if document.getDescription() is not empty %}
{% do pimcore_head_meta().setDescription(document.getDescription()) %}
{% endif %}

{% if document.getDescription() is not empty %}
{% do pimcore_head_meta().setDescription(document.getDescription()) %}
{% do pimcore_head_title().append('Pimcore Demo') %}
{% do pimcore_head_title().setSeparator(' : ') %}
{% endif %}

{% do pimcore_head_title().append('Pimcore Demo') %}
{% do pimcore_head_title().setSeparator(' : ') %}
{% set isPortal = ((isPortal is defined) and isPortal) %}
{% endapply %}

Expand Down

0 comments on commit 5648353

Please sign in to comment.