Ah, ich hatte mich bzgl. der Funktionalität mit iframe und colorbox geirrt. Du musst das Colorbox Template anpassen. Gehe also im Backend zu Layout - Templates und erzeuge dort ein neues j_colorbox Template. In diesem Template machst du dann bspw. folgende Änderung:
PHP-Code:
<?php
// Add the colorbox style sheet
$GLOBALS['TL_CSS'][] = 'assets/jquery/colorbox/'. $GLOBALS['TL_ASSETS']['COLORBOX'] .'/css/colorbox.min.css|static';
?>
<script src="<?= TL_ASSETS_URL ?>assets/jquery/colorbox/<?= $GLOBALS['TL_ASSETS']['COLORBOX'] ?>/js/colorbox.min.js"></script>
<script>
(function($) {
$(document).ready(function() {
$('a[data-lightbox]').map(function() {
$(this).colorbox({
// Put custom options here
loop: false,
rel: $(this).attr('data-lightbox'),
maxWidth: '95%',
maxHeight: '95%'
});
});
$('a.ML_OVERLAY').map(function() {
$(this).colorbox({
// Put custom options here
loop: false,
maxWidth: '80%',
maxHeight: '80%',
iframe:true
});
});
});
})(jQuery);
</script>
Den data-lightbox Parameter musst du dann wieder entfernen.