Browse code

Support rootfallback palette

Benjamin Roth authored on05/04/2020 11:44:32
Showing1 changed files
... ...
@@ -13,6 +13,9 @@
13 13
  */
14 14
 $GLOBALS['TL_DCA']['tl_page']['palettes']['__selector__'][] = 'cookieconsent_enable';
15 15
 $GLOBALS['TL_DCA']['tl_page']['palettes']['root'] .= ';{cookieconsent_legend},cookieconsent_enable';
16
+if (isset($GLOBALS['TL_DCA']['tl_page']['palettes']['rootfallback'])) {
17
+  $GLOBALS['TL_DCA']['tl_page']['palettes']['rootfallback'] .= ';{cookieconsent_legend},cookieconsent_enable';
18
+}
16 19
 
17 20
 $GLOBALS['TL_DCA']['tl_page']['subpalettes']['cookieconsent_enable'] = 'cookieconsent_link,cookieconsent_services,cookieconsent_categories_custom,cookieconsent_services_custom';
18 21