Closed (fixed)
Project:
Colorbox
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jul 2015 at 21:21 UTC
Updated:
19 Sep 2015 at 07:39 UTC
Jump to comment: Most recent
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 commentedYes, it doesn't works with the Beta 14 of Drupal.
Thanks in advance
Comment #2
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 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.jsI guess without this the colorbox UI does not get initialized?
Comment #5
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.