Skip to content

Commit

Permalink
Fix rootfallback palette
Browse files Browse the repository at this point in the history
  • Loading branch information
dmolineus committed Aug 5, 2020
1 parent 3f4eff8 commit 18d839a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Resources/contao/dca/tl_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
$GLOBALS['TL_DCA']['tl_page']['palettes']['root']
);

$GLOBALS['TL_DCA']['tl_page']['palettes']['rootfallback'] = str_replace(
'{publish_legend}',
'{facebook_pixel_legend},fb_pixel_id,fb_pixel_status,fb_pixel_consentId;{publish_legend}',
$GLOBALS['TL_DCA']['tl_page']['palettes']['root']
);
if (isset($GLOBALS['TL_DCA']['tl_page']['palettes']['rootfallback'])) {
$GLOBALS['TL_DCA']['tl_page']['palettes']['rootfallback'] = str_replace(
'{publish_legend}',
'{facebook_pixel_legend},fb_pixel_id,fb_pixel_status,fb_pixel_consentId;{publish_legend}',
$GLOBALS['TL_DCA']['tl_page']['palettes']['rootfallback']
);
}

$GLOBALS['TL_DCA']['tl_page']['fields']['fb_pixel_id'] = [
'label' => &$GLOBALS['TL_LANG']['tl_page']['fb_pixel_id'],
Expand Down

0 comments on commit 18d839a

Please sign in to comment.