Browse code

Show aside option only if an image is added

Benjamin Roth authored on29/04/2025 14:50:21
Showing1 changed files
... ...
@@ -10,7 +10,7 @@ $GLOBALS['TL_DCA']['tl_content']['palettes']['__selector__'][] = 'vr_bw_width';
10 10
 $GLOBALS['TL_DCA']['tl_content']['palettes']['__selector__'][] = 'vr_bw_bgBesideContent';
11 11
 $GLOBALS['TL_DCA']['tl_content']['palettes']['background_wrapper'] = '
12 12
     {type_legend},type,headline;
13
-    {background_legend},vr_bw_addImage,vr_bw_bgBesideContent,vr_bw_bgColor,vr_bw_bgWidthRestriction;
13
+    {background_legend},vr_bw_addImage,vr_bw_bgColor,vr_bw_bgWidthRestriction;
14 14
     {content_legend},vr_bw_minHeight,vr_bw_width,vr_bw_vAlign,vr_bw_padding,vr_bw_colorInvert;
15 15
     {template_legend:hide},customTpl;
16 16
     {protected_legend:hide},protected;
... ...
@@ -27,7 +27,7 @@ $GLOBALS['TL_DCA']['tl_content']['palettes']['grid_placement_wrapper'] = '
27 27
     {invisible_legend:hide},invisible,start,stop
28 28
 ';
29 29
 
30
-$GLOBALS['TL_DCA']['tl_content']['subpalettes']['vr_bw_addImage'] = 'vr_bw_bgSRC,size,vr_bw_bgSize,vr_bw_bgPos,vr_bw_bgOpacity';
30
+$GLOBALS['TL_DCA']['tl_content']['subpalettes']['vr_bw_addImage'] = 'vr_bw_bgSRC,size,vr_bw_bgSize,vr_bw_bgPos,vr_bw_bgOpacity,vr_bw_bgBesideContent';
31 31
 $GLOBALS['TL_DCA']['tl_content']['subpalettes']['vr_bw_bgBesideContent'] = 'vr_bw_bgHorizontalPosition,vr_bw_bgAsideContentResponsive';
32 32
 $GLOBALS['TL_DCA']['tl_content']['subpalettes']['vr_bw_minHeight_-mh-ratio'] = 'vr_bw_mh_ratio';
33 33
 $GLOBALS['TL_DCA']['tl_content']['subpalettes']['vr_bw_minHeight_-mh-vh'] = 'vr_bw_mh_viewport';