Hab das mal versucht, aber es hat nichts geholfen... Template sieht jetzt wie folgt aus:
Code:
<?php
//Include Fancybox2 JS
$GLOBALS['TL_JAVASCRIPT']['jquery_fancybox2_mousewheel'] = 'system/modules/jquery_fancybox2/html/fancybox2/lib/jquery.mousewheel-3.0.6.pack.js';
$GLOBALS['TL_JAVASCRIPT']['jquery_fancybox2'] = 'system/modules/jquery_fancybox2/html/fancybox2/source/jquery.fancybox.js?v=2.0.5';
$GLOBALS['TL_JAVASCRIPT']['jquery_fancybox2_buttons'] = 'system/modules/jquery_fancybox2/html/fancybox2/source/helpers/jquery.fancybox-buttons.js?v=2.0.5';
$GLOBALS['TL_JAVASCRIPT']['jquery_fancybox2_thumbs'] = 'system/modules/jquery_fancybox2/html/fancybox2/source/helpers/jquery.fancybox-thumbs.js?v=2.0.5';
//Include Fancybox2 CSS
$GLOBALS['TL_CSS']['jquery_fancybox2'] = 'system/modules/jquery_fancybox2/html/fancybox2/source/jquery.fancybox.css?v=2.0.5';
$GLOBALS['TL_CSS']['jquery_fancybox2_buttons'] = 'system/modules/jquery_fancybox2/html/fancybox2/source/helpers/jquery.fancybox-buttons.css?v=2.0.5';
$GLOBALS['TL_CSS']['jquery_fancybox2_thumbs'] = 'system/modules/jquery_fancybox2/html/fancybox2/source/helpers/jquery.fancybox-thumbs.css?v=2.0.5';
?>
<script type="text/javascript">
$(document).ready(function() {
$('a[rel^="lightbox"]').fancybox({
'fitToView' : true,
'arrows' : true,
'closeBtn' : true,
'closeClick' : false,
'nextClick' : false,
'loop' : false,
'nextEffect' : 'fade',
'prevEffect' : 'fade',
'nextSpeed' : 'slow',
'prevSpeed' : 'slow',
'groupAttr' : 'data-lightbox',
helpers : {
title : {
type : 'inside'
},
buttons : {},
thumbs : {
width : 120,
height : 80
}
}
});
});
</script>
Lesezeichen