Skip to content

Commit

Permalink
Fix sorting of slider images in tl_content
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Oct 13, 2022
1 parent 47f3d6d commit 9568800
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Slider.php
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,8 @@ public function contentOnloadCallback($dc)
if ($contentElement->type === 'rocksolid_slider') {
$GLOBALS['TL_DCA'][$dc->table]['fields']['multiSRC']['eval']['isGallery'] = true;
$GLOBALS['TL_DCA'][$dc->table]['fields']['multiSRC']['eval']['extensions'] = implode(',', System::getContainer()->getParameter('contao.image.valid_extensions'));
$GLOBALS['TL_DCA'][$dc->table]['fields']['multiSRC']['eval']['isSortable'] = true;
unset($GLOBALS['TL_DCA'][$dc->table]['fields']['multiSRC']['eval']['orderField']);
}
}

Expand Down

0 comments on commit 9568800

Please sign in to comment.