You are here

README.txt in Galleria 7

Same filename and directory in other branches
  1. 6 README.txt
Galleria Drupal Module
======================

1. How to install Galleria
2. How to use Galleria
3. Configure Galleria
4. Customizing and adding themes
5. Frequently Asked Questions (FAQ)
6. Missing Features from Drupal 6


1. How to install Galleria
--------------------------

1. Make sure the Libraries module is installed.
   You can download it from it's project page at
   http://drupal.org/project/libraries

2. Download the Galleria Javascript library from
   http://galleria.aino.se/download/
   and extract the galleria folder into your /sites/all/libraries/ directory.

3. Extract the Galleria Drupal module into your /sites/all/modules/ directory and
   enable it (module "Galleria" in category "Other").


2. How to use Galleria
----------------------

There are several approaches of building a Galleria image gallery:

a) Using Galleria with an image/media field in a node:
   This is the classic and easiest way of creating a Galleria gallery.
   You create an image field and upload multiple images to it.

    1. Create a new content type for your gallery pages or alter an existing one.

    2. Add a new or existing field of type "Image" or "Multimedia asset" on the "Manage Fields" tab of the content type.
       When you save the content type, you will be redirected to the settings form of the field instance where you
       can change the allowed file extensions, image resolutions etc.
       Check "Enable Title field" for image titles and "Enable Alt field" for descriptions which will both show up in
       Galleria if your Galleria theme supports it.
       You should also set the "Number of values" select box in the field settings to something higher than 1 (e.g. "Unlimited").

    3. Go to the "Manage Display" page of your content type. Set the "Format" of your image field to "Galleria".
       To the right of the select box you can now choose the option set to use for this Galleria instance.
       For details on option sets, see "Configure Galleria" below.

    4. Create a new page of your content type, upload some images and view the node.
       The images should now be rendered in a nice Galleria gallery.

b) Using Galleria with an imagenode and a nodereference gallery:
   In this mode you'll create one single node per image. An additional gallery content type will hold a
   nodereference field. Creating a gallery is a multi step process, but images can be reused across galleries.

   For this to work, you need the References module from http://drupal.org/project/references.

    1. Create your image content type or alter an existing one.

    2. Add an image field to your content type. Only allow ONE single image per node.

    3. Create your gallery content type or alter an existing one.

    4. Add a nodereference field to your content type.
       Make sure you reference the content type from step #1.

    5. Go to the "Manage Display" page of your gallery content type. Set the "Format" of your nodereference field
       to "Galleria". To the right of the select box you can now choose the option set to use for this Galleria instance.
       For details on option sets, see "Configure Galleria" below.

    6. Upload some images, add titles if you want. Create a gallery node, reference the images and view the node.
       You should now be able see the images in the Galleria display widget.

c) Using Galleria in a view of image fields:
   List any node/gallery with image fields using views. Use any filter you like (e.g. taxonomy) to structure galleries.
   This description contains only the most basic steps.

    1. Create a view of nodes with an image field. On the "Fields" panel in views set the display to "Fields"
       and add the target field (which has to be of type image!). Select "Image" as field formatter.
       If you have other fields in the view, the first image field in the list will be used.

    2. On the "Format" Panel choose Galleria as your views display format.

    3. Have a look at your view, it should get rendered as a Galleria now.


3. Configure Galleria
---------------------

The configuration page for the Galleria module can be found on the Drupal "Configuration" page within the section
"Media" (the path is admin/config/media/galleria).
The main concept of configuring how your Gallerias look like are so called "option sets".
For each gallery, you can assign one of these option sets which determine the size, theme, image styles and
overall Galleria options.
For a documentation of available options, see http://galleria.aino.se/docs/1.2/options/.
All officially documented options are available from the select list, but you can also type in custom options (for
example for theme specific options) using the input field next to the drop-down list.
If you need these special values to be of type Boolean, use the special strings 'TRUE' and 'FALSE'.
You have to at least specify a height and width if you do not plan to set these values in one of your CSS files.


4. Customizing and adding themes
--------------------------------

Galleria supports several additional themes which can be bought and downloaded at http://galleria.aino.se/themes/.
It's also possible to alter existing themes or completely create new ones. The documentation to do so can be found
at http://galleria.aino.se/docs/1.2/themes/creating_a_theme/.
In order to add an additional theme just download it and copy the theme folder into your
/sites/all/libraries/galleria/themes/ folder.


5. Frequently Asked Questions (FAQ)
-----------------------------------

Q: How can I add titles/descriptions to my images?
A: If you want to display a caption above your images within the Galleria check the "Enable Title field" and/or
   "Enable Alt field" (for descriptions) on the create/edit form of your image field (reachable on the "Manage Fields"
   tab of your content type.
   After you have uploaded an image you can now enter the caption/title on the corresponding image right under
   the file upload widget.

Q: How can I limit which file types can be uploaded to my gallery?
A: If you want to limit the possible image formats you can do so by entering the desired file extensions
   in the "Allowed file extensions" textfield on the create/edit form of your image field.

Q: I found a bug / have a feature request / need support! What do I do?
A: That's what the issue tracker is for! Just create a new issue at http://drupal.org/project/issues/galleria?version=7.x
   and tell us what you need.

Q: How can I upload multiple images at once?
A: There's a module for that!
   The Multiupload Imagefield Widget can be found at http://drupal.org/project/multiupload_imagefield_widget.


6. Missing Features from Drupal 6
---------------------------------

The Drupal 7 port lacks some of the features of the old Drupal 6 version:

- No jCarousel support
- No Lightbox2 support (integrated lightbox support only)
- No administer permission
- File extensions are no longer checked in the module code because the extensions
  can be narrowed down in the field form of the image field (see 'Allowed file extensions' textfield)

File

README.txt
View source
  1. Galleria Drupal Module
  2. ======================
  3. 1. How to install Galleria
  4. 2. How to use Galleria
  5. 3. Configure Galleria
  6. 4. Customizing and adding themes
  7. 5. Frequently Asked Questions (FAQ)
  8. 6. Missing Features from Drupal 6
  9. 1. How to install Galleria
  10. --------------------------
  11. 1. Make sure the Libraries module is installed.
  12. You can download it from it's project page at
  13. http://drupal.org/project/libraries
  14. 2. Download the Galleria Javascript library from
  15. http://galleria.aino.se/download/
  16. and extract the galleria folder into your /sites/all/libraries/ directory.
  17. 3. Extract the Galleria Drupal module into your /sites/all/modules/ directory and
  18. enable it (module "Galleria" in category "Other").
  19. 2. How to use Galleria
  20. ----------------------
  21. There are several approaches of building a Galleria image gallery:
  22. a) Using Galleria with an image/media field in a node:
  23. This is the classic and easiest way of creating a Galleria gallery.
  24. You create an image field and upload multiple images to it.
  25. 1. Create a new content type for your gallery pages or alter an existing one.
  26. 2. Add a new or existing field of type "Image" or "Multimedia asset" on the "Manage Fields" tab of the content type.
  27. When you save the content type, you will be redirected to the settings form of the field instance where you
  28. can change the allowed file extensions, image resolutions etc.
  29. Check "Enable Title field" for image titles and "Enable Alt field" for descriptions which will both show up in
  30. Galleria if your Galleria theme supports it.
  31. You should also set the "Number of values" select box in the field settings to something higher than 1 (e.g. "Unlimited").
  32. 3. Go to the "Manage Display" page of your content type. Set the "Format" of your image field to "Galleria".
  33. To the right of the select box you can now choose the option set to use for this Galleria instance.
  34. For details on option sets, see "Configure Galleria" below.
  35. 4. Create a new page of your content type, upload some images and view the node.
  36. The images should now be rendered in a nice Galleria gallery.
  37. b) Using Galleria with an imagenode and a nodereference gallery:
  38. In this mode you'll create one single node per image. An additional gallery content type will hold a
  39. nodereference field. Creating a gallery is a multi step process, but images can be reused across galleries.
  40. For this to work, you need the References module from http://drupal.org/project/references.
  41. 1. Create your image content type or alter an existing one.
  42. 2. Add an image field to your content type. Only allow ONE single image per node.
  43. 3. Create your gallery content type or alter an existing one.
  44. 4. Add a nodereference field to your content type.
  45. Make sure you reference the content type from step #1.
  46. 5. Go to the "Manage Display" page of your gallery content type. Set the "Format" of your nodereference field
  47. to "Galleria". To the right of the select box you can now choose the option set to use for this Galleria instance.
  48. For details on option sets, see "Configure Galleria" below.
  49. 6. Upload some images, add titles if you want. Create a gallery node, reference the images and view the node.
  50. You should now be able see the images in the Galleria display widget.
  51. c) Using Galleria in a view of image fields:
  52. List any node/gallery with image fields using views. Use any filter you like (e.g. taxonomy) to structure galleries.
  53. This description contains only the most basic steps.
  54. 1. Create a view of nodes with an image field. On the "Fields" panel in views set the display to "Fields"
  55. and add the target field (which has to be of type image!). Select "Image" as field formatter.
  56. If you have other fields in the view, the first image field in the list will be used.
  57. 2. On the "Format" Panel choose Galleria as your views display format.
  58. 3. Have a look at your view, it should get rendered as a Galleria now.
  59. 3. Configure Galleria
  60. ---------------------
  61. The configuration page for the Galleria module can be found on the Drupal "Configuration" page within the section
  62. "Media" (the path is admin/config/media/galleria).
  63. The main concept of configuring how your Gallerias look like are so called "option sets".
  64. For each gallery, you can assign one of these option sets which determine the size, theme, image styles and
  65. overall Galleria options.
  66. For a documentation of available options, see http://galleria.aino.se/docs/1.2/options/.
  67. All officially documented options are available from the select list, but you can also type in custom options (for
  68. example for theme specific options) using the input field next to the drop-down list.
  69. If you need these special values to be of type Boolean, use the special strings 'TRUE' and 'FALSE'.
  70. You have to at least specify a height and width if you do not plan to set these values in one of your CSS files.
  71. 4. Customizing and adding themes
  72. --------------------------------
  73. Galleria supports several additional themes which can be bought and downloaded at http://galleria.aino.se/themes/.
  74. It's also possible to alter existing themes or completely create new ones. The documentation to do so can be found
  75. at http://galleria.aino.se/docs/1.2/themes/creating_a_theme/.
  76. In order to add an additional theme just download it and copy the theme folder into your
  77. /sites/all/libraries/galleria/themes/ folder.
  78. 5. Frequently Asked Questions (FAQ)
  79. -----------------------------------
  80. Q: How can I add titles/descriptions to my images?
  81. A: If you want to display a caption above your images within the Galleria check the "Enable Title field" and/or
  82. "Enable Alt field" (for descriptions) on the create/edit form of your image field (reachable on the "Manage Fields"
  83. tab of your content type.
  84. After you have uploaded an image you can now enter the caption/title on the corresponding image right under
  85. the file upload widget.
  86. Q: How can I limit which file types can be uploaded to my gallery?
  87. A: If you want to limit the possible image formats you can do so by entering the desired file extensions
  88. in the "Allowed file extensions" textfield on the create/edit form of your image field.
  89. Q: I found a bug / have a feature request / need support! What do I do?
  90. A: That's what the issue tracker is for! Just create a new issue at http://drupal.org/project/issues/galleria?version=7.x
  91. and tell us what you need.
  92. Q: How can I upload multiple images at once?
  93. A: There's a module for that!
  94. The Multiupload Imagefield Widget can be found at http://drupal.org/project/multiupload_imagefield_widget.
  95. 6. Missing Features from Drupal 6
  96. ---------------------------------
  97. The Drupal 7 port lacks some of the features of the old Drupal 6 version:
  98. - No jCarousel support
  99. - No Lightbox2 support (integrated lightbox support only)
  100. - No administer permission
  101. - File extensions are no longer checked in the module code because the extensions
  102. can be narrowed down in the field form of the image field (see 'Allowed file extensions' textfield)