From a4c23033767059ecbf54e6e91d8d4f043aa84f34 Mon Sep 17 00:00:00 2001 From: Richard Henkenjohann Date: Mon, 14 Nov 2022 14:03:47 +0100 Subject: [PATCH] Also add CSS classes to new Content Elements --- contao/templates/root/.twig-root | 0 contao/templates/root/content_element/_base.html.twig | 3 +++ 2 files changed, 3 insertions(+) create mode 100644 contao/templates/root/.twig-root create mode 100644 contao/templates/root/content_element/_base.html.twig diff --git a/contao/templates/root/.twig-root b/contao/templates/root/.twig-root new file mode 100644 index 0000000..e69de29 diff --git a/contao/templates/root/content_element/_base.html.twig b/contao/templates/root/content_element/_base.html.twig new file mode 100644 index 0000000..5f028f9 --- /dev/null +++ b/contao/templates/root/content_element/_base.html.twig @@ -0,0 +1,3 @@ +{% extends '@Contao/content_element/_base.html.twig' %} + +{% set attributes = attrs(attributes|default).addClass(data.toolbox_classes|default('')|split(' ')) %}