Skip to content

Commit

Permalink
Added support for folders in module image sliders, see #25
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Aug 31, 2016
1 parent eac4f1a commit 371c7d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/MadeYourDay/Contao/Slider.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,7 @@ public function moduleOnloadCallback($dc)

if ($module->type === 'rocksolid_slider') {
$GLOBALS['TL_DCA'][$dc->table]['fields']['multiSRC']['eval']['isGallery'] = true;
$GLOBALS['TL_DCA'][$dc->table]['fields']['multiSRC']['eval']['filesOnly'] = true;
$GLOBALS['TL_DCA'][$dc->table]['fields']['multiSRC']['eval']['extensions'] = $GLOBALS['TL_CONFIG']['validImageTypes'];
$GLOBALS['TL_DCA'][$dc->table]['fields']['multiSRC']['eval']['extensions'] = \Config::get('validImageTypes');
}
}

Expand Down

0 comments on commit 371c7d4

Please sign in to comment.