Hallo,

ich habe über Templates die Fancybox eingebunden, so das ich sie im BE unter den jquery-Templates auswählen kann.
Wenn ich jetzt eine Galerie anlege gehen die Bilder auch in der Fancybox auf, aber ich kann nicht hin und her blättern!
Das "data-lightbox" Attribut ist auch vorhanden. Aber irgendwie erkennt fancybox die nicht als Gruppe.
Mein Aufruf in der j_fancybox.html5 sieht so aus:
PHP-Code:
<?php

// Add the colorbox style sheet
$GLOBALS['TL_CSS'][] = 'assets/jquery/fancybox/2.1.50/css/jquery.fancybox.css';

?>
<script src="<?php echo TL_ASSETS_URL?>assets/jquery/fancybox/2.1.50/js/jquery.fancybox.pack.js"></script>

<script>
 (function($) {
    $(document).ready(function() {
      $('a[data-lightbox]').map(function() {
      $(this).attr('data-fancybox-group', 'galllery')
       $(this).fancybox({
          // Put custom options here
          
          
          maxWidth: '95%',
          maxHeight: '95%'
        });
      });
    });
  })(jQuery);
</script>