You are here

README.txt in Scald: Gallery 7.2

Same filename and directory in other branches
  1. 7 README.txt
== Installation

1. - Install the Libraries module.
This is required by scald_gallery and scald_galleria.
Available at https://drupal.org/project/libraries.
Download, install and enable as usual. No configuration required.

2. - Install the Galleria Javascript library.
If your site doesn't have the directory sites/all/libraries, create it now.
Visit http://galleria.io/ and click the 'Free download' button.
Save the zip file.
Extract the contents, then copy the galleria directory and all its contents
to sites/all/libraries. You should end up with path sites/all/libraries/galleria

3. - Update your jQuery
Newer versions of Galleria requires jQuery 1.7 or higher. The standard
Drupal 7 installation ships with an older version of jQuery.
To update it, download, install and enable module jquery_update
from https://drupal.org/project/jquery_update.
After enabling it, go to admin/config/development/jquery_update
and choose a later version of jQuery.

4. - Install the Scald Gallery module
Download and install as usual. You will see two new modules, scald_gallery
and scald_galleria. Enable them both.
Go to admin/structure/scald/gallery/contexts and below the preferred
representation choose the Galleria, also check player settings.

Now you should be able to create a new gallery and add images to it.
When you view the Gallery atom, they are displayed in the Galleria viewer.

Possible problems when viewing the Gallery atom:
- "Notice: Undefined index: data in drupal_process_attached()"
When you view the gallery, thumbnails of the gallery's images are shown,
but no viewer is displayed. The error message shown above is displayed.
You have copied the library to the wrong path. Check step 2 above.

- No error message, but no viewer either.
When you view the gallery, thumbnails of the gallery's images are shown,
but no viewer is displayed. Checking the browser's javascript console,
I found the error message
"Uncaught TypeError: Object [object Object] has no method 'on'"
This was a sign that the wrong jQuery version was installed. Check step 3 above.

The following steps is optional and could be use with the latest Scald dev or
the upcoming Scald 1.1 for multiple and drag and drop file upload.

- Download the plupload module.
- Download the plupload library, run 'ant' to build the library. You should have
  a sites/all/libraries/plupload/js folder after the build.
- In each atom type (e.g. for Images it is admin/structure/scald/image) select
  Plupload as the default upload type.

== Using

Gallery can be created using both modal dialog (the add button in the DnD
library) or at atom/add/gallery. However when creating a gallery in a modal
dialog, you can't create another atom in another modal dialog then add it to the
gallery.

The Galleria player support title and description for each gallery item. By
default, item title is the atom title, but it can be overriden locally in the
gallery.

Galleria supports many themes. In the basic theme, title and description can by
displayed by clicking the <i> button at the top left corner.

File

README.txt
View source
  1. == Installation
  2. 1. - Install the Libraries module.
  3. This is required by scald_gallery and scald_galleria.
  4. Available at https://drupal.org/project/libraries.
  5. Download, install and enable as usual. No configuration required.
  6. 2. - Install the Galleria Javascript library.
  7. If your site doesn't have the directory sites/all/libraries, create it now.
  8. Visit http://galleria.io/ and click the 'Free download' button.
  9. Save the zip file.
  10. Extract the contents, then copy the galleria directory and all its contents
  11. to sites/all/libraries. You should end up with path sites/all/libraries/galleria
  12. 3. - Update your jQuery
  13. Newer versions of Galleria requires jQuery 1.7 or higher. The standard
  14. Drupal 7 installation ships with an older version of jQuery.
  15. To update it, download, install and enable module jquery_update
  16. from https://drupal.org/project/jquery_update.
  17. After enabling it, go to admin/config/development/jquery_update
  18. and choose a later version of jQuery.
  19. 4. - Install the Scald Gallery module
  20. Download and install as usual. You will see two new modules, scald_gallery
  21. and scald_galleria. Enable them both.
  22. Go to admin/structure/scald/gallery/contexts and below the preferred
  23. representation choose the Galleria, also check player settings.
  24. Now you should be able to create a new gallery and add images to it.
  25. When you view the Gallery atom, they are displayed in the Galleria viewer.
  26. Possible problems when viewing the Gallery atom:
  27. - "Notice: Undefined index: data in drupal_process_attached()"
  28. When you view the gallery, thumbnails of the gallery's images are shown,
  29. but no viewer is displayed. The error message shown above is displayed.
  30. You have copied the library to the wrong path. Check step 2 above.
  31. - No error message, but no viewer either.
  32. When you view the gallery, thumbnails of the gallery's images are shown,
  33. but no viewer is displayed. Checking the browser's javascript console,
  34. I found the error message
  35. "Uncaught TypeError: Object [object Object] has no method 'on'"
  36. This was a sign that the wrong jQuery version was installed. Check step 3 above.
  37. The following steps is optional and could be use with the latest Scald dev or
  38. the upcoming Scald 1.1 for multiple and drag and drop file upload.
  39. - Download the plupload module.
  40. - Download the plupload library, run 'ant' to build the library. You should have
  41. a sites/all/libraries/plupload/js folder after the build.
  42. - In each atom type (e.g. for Images it is admin/structure/scald/image) select
  43. Plupload as the default upload type.
  44. == Using
  45. Gallery can be created using both modal dialog (the add button in the DnD
  46. library) or at atom/add/gallery. However when creating a gallery in a modal
  47. dialog, you can't create another atom in another modal dialog then add it to the
  48. gallery.
  49. The Galleria player support title and description for each gallery item. By
  50. default, item title is the atom title, but it can be overriden locally in the
  51. gallery.
  52. Galleria supports many themes. In the basic theme, title and description can by
  53. displayed by clicking the button at the top left corner.