From 2fe8f0e43bc64216e8b2c42435c34bf72ee68096 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Fri, 10 Dec 2021 14:59:43 +0100 Subject: [PATCH] Add comment to prevent future misunderstanding --- templates/base/layouts/content-block/layout.html.twig | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/base/layouts/content-block/layout.html.twig b/templates/base/layouts/content-block/layout.html.twig index 29da9abb08..c4ab3830c3 100644 --- a/templates/base/layouts/content-block/layout.html.twig +++ b/templates/base/layouts/content-block/layout.html.twig @@ -3,6 +3,7 @@ {# Content Block #} {% apply spaceless %} + {# Important: We don't want the UIContentBlock have a div node based on the inherited CSS classes, otherwise the node would always be present, which is not what we want #} {% set bHasDiv = (oUIBlock.GetAdditionalCSSClassesAsString() or oUIBlock.GetDataAttributes() or oUIBlock.IsHidden() or oUIBlock.HasForcedDiv()) %} {% block iboContentBlockContainer %}