README.txt 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. CONTENTS OF THIS FILE
  2. ---------------------
  3. * Introduction
  4. * Features
  5. * Requirements
  6. * Installation
  7. * Configuration
  8. * Maintainers
  9. INTRODUCTION
  10. ------------
  11. Colorbox is a light-weight, customizable lightbox plugin for jQuery 1.4.3+.
  12. This module allows for integration of Colorbox into Drupal.
  13. The jQuery library is a part of Drupal since version 5+.
  14. * jQuery - http://jquery.com/
  15. * Colorbox - http://www.jacklmoore.com/colorbox/
  16. FEATURES:
  17. ---------
  18. The Colorbox module:
  19. * Works as a Formatter in entities and in views.
  20. * Excellent integration with core image field and image styles and the Insert
  21. module
  22. * Choose between a default style and a number of other styles that are included.
  23. * Style the Colorbox with a custom Colorbox style in your theme.
  24. * Drush command, drush colorbox-plugin, to download and install the Colorbox
  25. plugin in "libraries/".
  26. The Colorbox plugin:
  27. * Compatible with: jQuery 1.3.2+ in Firefox, Safari, Chrome, Opera, Internet
  28. Explorer 7+
  29. * Supports photos, grouping, slideshow, ajax, inline, and iframed content.
  30. * Lightweight: 10KB of JavaScript (less than 5KBs gzipped).
  31. * Appearance is controlled through CSS so it can be restyled.
  32. * Can be extended with callbacks & event-hooks without altering the source
  33. files.
  34. * Completely unobtrusive, options are set in the JS and require no changes to
  35. existing HTML.
  36. * Preloads upcoming images in a photo group.
  37. * Currently used on more than 2 million websites.
  38. * Released under the MIT License.
  39. REQUIREMENTS
  40. ------------
  41. Just Colorbox plugin in "libraries".
  42. INSTALLATION
  43. ------------
  44. 1. Install the module as normal, see link for instructions.
  45. Link: https://www.drupal.org/documentation/install/modules-themes/modules-8
  46. 2. Download and unpack the Colorbox plugin in "libraries".
  47. Make sure the path to the plugin file becomes:
  48. "libraries/colorbox/jquery.colorbox-min.js"
  49. Link: https://github.com/jackmoore/colorbox/archive/master.zip
  50. Drush users can use the command "drush colorbox-plugin".
  51. 3. Go to "Administer" -> "Extend" and enable the Colorbox module.
  52. CONFIGURATION
  53. -------------
  54. * Go to "Configuration" -> "Media" -> "Colorbox" to find all the configuration
  55. options.
  56. Add a custom Colorbox style to your theme:
  57. ----------------------------------------
  58. The easiest way is to start with either the default style or one of the example
  59. styles included in the Colorbox JS library download. Simply copy the entire
  60. style folder to your theme and rename it to something logical like "mycolorbox".
  61. Inside that folder are both a .css and .js file, rename both of those as well to
  62. match your folder name: i.e. "colorbox_mycolorbox.css" and
  63. "colorbox_mycolorbox.js"
  64. Add entries in your theme's .info file for the Colorbox CSS/JS files:
  65. stylesheets[all][] = mycolorbox/colorbox_mycolorbox.css
  66. scripts[] = mycolorbox/colorbox_mycolorbox.js
  67. Go to "Configuration" -> "Media" -> "Colorbox" and select "None" under
  68. "Styles and Options". This will leave the styling of Colorbox up to your theme.
  69. Make any CSS adjustments to your "colorbox_mycolorbox.css" file.
  70. Drush:
  71. ------
  72. A Drush command is provides for easy installation of the Colorbox plugin itself.
  73. % drush colorbox-plugin
  74. The command will download the plugin and unpack it in "libraries/".
  75. It is possible to add another path as an option to the command, but not
  76. recommended unless you know what you are doing.
  77. MAINTAINERS
  78. -----------
  79. Current maintainers:
  80. * Fredrik Jonsson (frjo) - https://www.drupal.org/user/5546
  81. Requires - Drupal 8
  82. License - GPL (see LICENSE)