Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Libraries is not working with recent Drupal 8 (beta 12) as per https://www.drupal.org/node/2418907
Therefore Colorbox cannot be used in this version.
Would it be possible to utilize the colorbox.libraries.yml to define the paths to the actual colorbox.js instead of depending on the libraries module?
Comments
Comment #1
musikscontact CreditAttribution: musikscontact commentedYes, it doesn't works with the Beta 14 of Drupal.
Thanks in advance
Comment #2
frjo CreditAttribution: frjo commentedThanks for reporting this, any sorry for it taking so long to fix.
I believe I have fixed it enough to work on 8.0.0-beta14 now.
The module no longer depends upon the libraries module so the libraries path is hardcoded to "/libraries/colorbox".
Comment #4
ansorg CreditAttribution: ansorg as a volunteer commentedOk, I got around to try it again. Something is still not working, using d8 beta 15
the pictures get formatted correctly as it seems, example
<div class="field__item"><a href="http://d8.demo/sites/default/files/styles/large/public/99-06-30.jpg?itok=WflRrHrO" title="Sample" rel="gallery-all" class="colorbox"><img src="http://d8.ansorg-web.de/sites/default/files/styles/medium/public/99-06-30.jpg?itok=UEFWsrOz" width="220" height="147" alt="" class="image-style-medium" />
Altough the library gets included like this
<script src="http://d8.ansorg-web.de/libraries/colorbox/jquery.colorbox-min.js?v=1.6.1"></script>
there is no reference to the actual module JS file
/kunden/ja-web.de/DRUPAL/drupal-8.0.x-dev/modules/colorbox/js/colorbox.js
I guess without this the colorbox UI does not get initialized?
Comment #5
AndyLicht CreditAttribution: AndyLicht commentedHi,
thanks for this great modul. At the moment, i think, the handling with the images is working (the first image is bigger, gallery and the resizing of pictures is working, the shown images could be smaller or greater than the opened image). It seems that the opening in a modal-view is not working, in my test it openend the image in the same tab/window.
Thanks.