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

musikscontact’s picture

Yes, it doesn't works with the Beta 14 of Drupal.

Thanks in advance

frjo’s picture

Title: Does not work/load with D8 beta12 » Does not work/load with D8 beta12 or later
Status: Active » Fixed

Thanks 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".

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

ansorg’s picture

Ok, 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?

AndyLicht’s picture

Hi,
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.