Same filename and directory in other branches
  1. 7.x-1.x README.txt 1 comment
  2. 7.x-2.x README.txt 1 comment
  3. 8.x-1.x README.txt 1 comment
CONTENTS OF THIS FILE
---------------------

 * Introduction
 * Features
 * Requirements
 * Installation
 * Configuration
 * Maintainers


INTRODUCTION
------------

Colorbox is a light-weight, customizable lightbox plugin for jQuery 1.4.3+.
This module allows for integration of Colorbox into Drupal.
The jQuery library is a part of Drupal since version 5+.

* jQuery - http://jquery.com/
* Colorbox - http://www.jacklmoore.com/colorbox/


FEATURES:
---------

The Colorbox module:

* Works as a Formatter in entities and in views.
* Excellent integration with core image field and image styles and the Insert
  module
* Choose between a default style and a number of other styles that are included.
* Style the Colorbox with a custom Colorbox style in your theme.
* Drush command, drush colorbox-plugin, to download and install the Colorbox
  plugin in "libraries/".

The Colorbox plugin:

* Compatible with: jQuery 1.3.2+ in Firefox, Safari, Chrome, Opera, Internet
  Explorer 7+
* Supports photos, grouping, slideshow, ajax, inline, and iframed content.
* Lightweight: 10KB of JavaScript (less than 5KBs gzipped).
* Appearance is controlled through CSS so it can be restyled.
* Can be extended with callbacks & event-hooks without altering the source
  files.
* Completely unobtrusive, options are set in the JS and require no changes to
  existing HTML.
* Preloads upcoming images in a photo group.
* Currently used on more than 2 million websites.
* Released under the MIT License.


REQUIREMENTS
------------

Just Colorbox plugin in "libraries".

OPTIONAL HTML CAPTIONS
----------------------
Colorbox allows you to place a caption at the bottom of the lightbox.
If you wish to use HTML in your captions, you must install the DOMPurify
library. In your libraries folder, you will need
DOMPurify/dist/purify.min.js.

You can install DOMPurify using drush:
 drush colorbox:dompurify

Or, if you prefer, you can download DOMPurify directly from:
https://github.com/cure53/DOMPurify/releases/latest

From the above link, you can download a zip or tar.gz archive file.
To avoid security issues, please only install the dist directory, and
nothing else from the archive. The drush command above only installs
the dist directory.



The DOMPurify library is optional. Without DOMPurify, the Colorbox module
will convert all captions to plain text.



INSTALLATION
------------

1. Install the module as normal, see link for instructions.
   Link: https://www.drupal.org/documentation/install/modules-themes/modules-8

2. Download and unpack the Colorbox plugin in "libraries" inside root folder.
    Make sure the path to the plugin file becomes:
    "libraries/colorbox/jquery.colorbox-min.js"
   Link: https://github.com/jackmoore/colorbox/archive/master.zip
   Drush users can use the command "drush colorbox-plugin".

3. Change the permission of colorbox plugin inside 'libraries' folder.
    Right click on 'libraries' folder -> properties -> "permissions"
    and change to full permission.

4. Go to "Administer" -> "Extend" and enable the Colorbox module.


CONFIGURATION
-------------

 * Go to "Configuration" -> "Media" -> "Colorbox" to find all the configuration
   options.

Add a custom Colorbox style to your theme:
----------------------------------------
The easiest way is to start with either the default style or one of the example
styles included in the Colorbox JS library download. Simply copy the entire
style folder to your theme and rename it to something logical like "mycolorbox".
Inside that folder are both a .css and .js file, rename both of those as well to
match your folder name: i.e. "colorbox_mycolorbox.css" and
"colorbox_mycolorbox.js"

Add entries in your theme's .info file for the Colorbox CSS/JS files:

stylesheets[all][] = mycolorbox/colorbox_mycolorbox.css
scripts[] = mycolorbox/colorbox_mycolorbox.js

Go to "Configuration" -> "Media" -> "Colorbox" and select "None" under
"Styles and Options". This will leave the styling of Colorbox up to your theme.
Make any CSS adjustments to your "colorbox_mycolorbox.css" file.


Drush:
------
A Drush command is provides for easy installation of the Colorbox plugin itself.

% drush colorbox-plugin

The command will download the plugin and unpack it in "libraries/".
It is possible to add another path as an option to the command, but not
recommended unless you know what you are doing.


Requires - Drupal 8.8+ or 9
License - GPL (see LICENSE)

File

./README.txt

View source
  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. OPTIONAL HTML CAPTIONS
  43. ----------------------
  44. Colorbox allows you to place a caption at the bottom of the lightbox.
  45. If you wish to use HTML in your captions, you must install the DOMPurify
  46. library. In your libraries folder, you will need
  47. DOMPurify/dist/purify.min.js.
  48. You can install DOMPurify using drush:
  49. drush colorbox:dompurify
  50. Or, if you prefer, you can download DOMPurify directly from:
  51. https://github.com/cure53/DOMPurify/releases/latest
  52. From the above link, you can download a zip or tar.gz archive file.
  53. To avoid security issues, please only install the dist directory, and
  54. nothing else from the archive. The drush command above only installs
  55. the dist directory.
  56. The DOMPurify library is optional. Without DOMPurify, the Colorbox module
  57. will convert all captions to plain text.
  58. INSTALLATION
  59. ------------
  60. 1. Install the module as normal, see link for instructions.
  61. Link: https://www.drupal.org/documentation/install/modules-themes/modules-8
  62. 2. Download and unpack the Colorbox plugin in "libraries" inside root folder.
  63. Make sure the path to the plugin file becomes:
  64. "libraries/colorbox/jquery.colorbox-min.js"
  65. Link: https://github.com/jackmoore/colorbox/archive/master.zip
  66. Drush users can use the command "drush colorbox-plugin".
  67. 3. Change the permission of colorbox plugin inside 'libraries' folder.
  68. Right click on 'libraries' folder -> properties -> "permissions"
  69. and change to full permission.
  70. 4. Go to "Administer" -> "Extend" and enable the Colorbox module.
  71. CONFIGURATION
  72. -------------
  73. * Go to "Configuration" -> "Media" -> "Colorbox" to find all the configuration
  74. options.
  75. Add a custom Colorbox style to your theme:
  76. ----------------------------------------
  77. The easiest way is to start with either the default style or one of the example
  78. styles included in the Colorbox JS library download. Simply copy the entire
  79. style folder to your theme and rename it to something logical like "mycolorbox".
  80. Inside that folder are both a .css and .js file, rename both of those as well to
  81. match your folder name: i.e. "colorbox_mycolorbox.css" and
  82. "colorbox_mycolorbox.js"
  83. Add entries in your theme's .info file for the Colorbox CSS/JS files:
  84. stylesheets[all][] = mycolorbox/colorbox_mycolorbox.css
  85. scripts[] = mycolorbox/colorbox_mycolorbox.js
  86. Go to "Configuration" -> "Media" -> "Colorbox" and select "None" under
  87. "Styles and Options". This will leave the styling of Colorbox up to your theme.
  88. Make any CSS adjustments to your "colorbox_mycolorbox.css" file.
  89. Drush:
  90. ------
  91. A Drush command is provides for easy installation of the Colorbox plugin itself.
  92. % drush colorbox-plugin
  93. The command will download the plugin and unpack it in "libraries/".
  94. It is possible to add another path as an option to the command, but not
  95. recommended unless you know what you are doing.
  96. Requires - Drupal 8.8+ or 9
  97. License - GPL (see LICENSE)