Closed pindo-bindo closed 1 year ago
foreach (array_keys($GLOBALS['TL_JAVASCRIPT'], 'bundles/rocksolidslider/js/rocksolid-slider.min.js|static') as $key) {
unset($GLOBALS['TL_JAVASCRIPT'][$key]);
}
Thank you so much Martin Auswöger!
Hi there,
how can I prevent "bundles/rocksolidslider/js/rocksolid-slider.min.js" from being loaded in a contao templates j_file?
unset(
);
should be the right fuction but neither
$GLOBALS['TL_JAVASCRIPT']['rocksolid_slider'], nor $GLOBALS['TL_JAVASCRIPT']['tl_rocksolid_slider'], nor $GLOBALS['TL_JAVASCRIPT']['contao-rocksolid-slider'],
work to prevent the javascript file from being loaded.
Can you help?
Many thanks in advance!