From e480293e1f28bfd7ad665d208969dd80e23e7f23 Mon Sep 17 00:00:00 2001 From: Defcon0 Date: Sat, 13 Sep 2025 16:45:50 +0200 Subject: [PATCH] Fix index issue for contao5 --- contao/dca/tl_theme.php | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/contao/dca/tl_theme.php b/contao/dca/tl_theme.php index 9ec742d..6641da6 100644 --- a/contao/dca/tl_theme.php +++ b/contao/dca/tl_theme.php @@ -1,15 +1,9 @@ [ - 'label' => &$GLOBALS['TL_LANG']['tl_theme']['blocks'], - 'href' => 'table=tl_block', - 'icon' => 'bundles/heimrichhannotblocks/assets/icon.png', - ], - ] -); +$GLOBALS['TL_DCA']['tl_theme']['list']['operations']['blocks'] = [ + 'label' => &$GLOBALS['TL_LANG']['tl_theme']['blocks'], + 'href' => 'table=tl_block', + 'icon' => 'bundles/heimrichhannotblocks/assets/icon.png', +]; $GLOBALS['TL_DCA']['tl_theme']['config']['ctable'][] = 'tl_block';