You are here

README.txt in ImageLightbox 8

Same filename and directory in other branches
  1. 2.x README.txt
  2. 2.0.x README.txt
ImageLightBox Drupal module

Summary
=========================
This module provides integration with ImageLightBox library.


Installation
=========================
 * Install the module as normal, see link for instructions.
   Link: https://www.drupal.org/documentation/install/modules-themes/modules-8
 * Define image style "imagelightbox" and "imagelightbox small"
 * Go to "Content Type" -> add "Image Field" -> "Manage Display" -> Select the "ImageLightBox" format and configure the image style.

Custom Configuration
=========================
You can override the configuration that comes with the module by copying
the libraries/imagelightbox.config.js to your custom theme. If you put it
in the theme's js folder then you can use the following in your custom
theme's info file.


libraries-override:
  imagelightbox/formatter:
    js:
      libraries/imagelightbox.config.js: js/imagelightbox.config.js
  imagelightbox/imagelightbox:
    js:
      libraries/imagelightbox.config.js: js/imagelightbox.config.js


More information on overriding files can be found here:
https://www.drupal.org/docs/8/theming/adding-stylesheets-css-and-javascript-js-to-a-drupal-8-theme#override-extend

More information about the ImageLightBox configuration file options can
be found here: https://osvaldas.info/image-lightbox-responsive-touch-friendly

Notes
=========================
 * You can use `drush imagelightbox-download` command for easy installation of the
   library.
 * To make it work with Views you should either set "Use field template"
   checkbox or manually add "imagelightbox" class in View field style settings.
 * Download ImageLightBox library from https://github.com/osvaldasvalutis/imageLightbox.js.
 * Unzip the library and place files from dist directory to
   libraries/imagelightbox directory.

File

README.txt
View source
  1. ImageLightBox Drupal module
  2. Summary
  3. =========================
  4. This module provides integration with ImageLightBox library.
  5. Installation
  6. =========================
  7. * Install the module as normal, see link for instructions.
  8. Link: https://www.drupal.org/documentation/install/modules-themes/modules-8
  9. * Define image style "imagelightbox" and "imagelightbox small"
  10. * Go to "Content Type" -> add "Image Field" -> "Manage Display" -> Select the "ImageLightBox" format and configure the image style.
  11. Custom Configuration
  12. =========================
  13. You can override the configuration that comes with the module by copying
  14. the libraries/imagelightbox.config.js to your custom theme. If you put it
  15. in the theme's js folder then you can use the following in your custom
  16. theme's info file.
  17. libraries-override:
  18. imagelightbox/formatter:
  19. js:
  20. libraries/imagelightbox.config.js: js/imagelightbox.config.js
  21. imagelightbox/imagelightbox:
  22. js:
  23. libraries/imagelightbox.config.js: js/imagelightbox.config.js
  24. More information on overriding files can be found here:
  25. https://www.drupal.org/docs/8/theming/adding-stylesheets-css-and-javascript-js-to-a-drupal-8-theme#override-extend
  26. More information about the ImageLightBox configuration file options can
  27. be found here: https://osvaldas.info/image-lightbox-responsive-touch-friendly
  28. Notes
  29. =========================
  30. * You can use `drush imagelightbox-download` command for easy installation of the
  31. library.
  32. * To make it work with Views you should either set "Use field template"
  33. checkbox or manually add "imagelightbox" class in View field style settings.
  34. * Download ImageLightBox library from https://github.com/osvaldasvalutis/imageLightbox.js.
  35. * Unzip the library and place files from dist directory to
  36. libraries/imagelightbox directory.