Du musst das j_colorbox template anpassen und Optionen iframe und innerWidth sowie innerHeight mit aufnehmen. Die Datei müsste dann z.b. so aussehen:
Code:
<?php
// Add the colorbox style sheet
$GLOBALS['TL_CSS'][] = 'assets/jquery/colorbox/'. COLORBOX .'/css/colorbox.min.css||static';
?>
<script src="<?php echo TL_ASSETS_URL; ?>assets/jquery/colorbox/<?php echo 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%',
iframe:true,
innerWidth:500,
innerHeight:409
});
});
});
})(jQuery);
</script>
Bei CE Hyperlink musst du lightbox eintragen. Du könntest aber auch noch zahlen übergeben und dann bei inner width/height hinterlegen.
Hoffe das hilft dir.
Viele Grüße
Joe
Lesezeichen