Online Documentation

Complete documentation can be found on the wiki.

Settings

Directory Settings

"URI of Gallery2" is the URI of the Gallery2 standalone location. Path from docroot to the directory main.php is located. Protocol / host name are both optional. Examples: /gallery2/, /sub/gallery2/, http://photos.example.com/, www.example.com/photos/main.php

"Location of Gallery2" is the path of your gallery2 installation, either absolute (starts with "/") or relative to your Drupal installation directory. Normally this is auto-detected, but in case this fails you can turn off auto-detection and manually enter a value.

"Embed URI" is the URI needed to access Gallery2 through Drupal. This will end in \'?q=gallery\' (non-clean URLs) or \'gallery\' (clean URLs). Normally this is auto-detected, but in case this fails you can turn off auto-detection and manually enter a value.

Some examples:

Example 1: If your directory structure and website structure is

Example 2: If your directory structure and website structure is

Example 3: If your directory structure and website structure is

Full Name settings

Drupal does not have in-built support for full names but Gallery 2 does. If you would like full names in both then you can install profile.module in Drupal and define a "full name" field. Include the name of that field here. You can enable/disable this functionality at will, but it may leave some users with different full names in their Drupal and Gallery users, so it is not recommended.

Search settings

You can select how many items are returned per Gallery2 module. You can also specify whether thumbnails should be returned, and if so, how they should be formatted.

Error Logging settings

You can choose whether errors occuring in this module are logged in the watchdog, displayed in the browser, or both.

'); $output .= _gallery_g2image_help(); return $output; case 'admin/settings/gallery': return t(''); /* Used in the default value for the pages list in g2image settings */ case 'admin/settings/gallery_g2image#pages': return "node/*\ncomment/*"; } } function gallery_filter_short_tip_translated() { return t('You may link to Gallery2 items on this site using a special syntax.', array ('@explanation-url' => url('filter/tips', NULL, 'filter-gallery-0'))); } function gallery_filter_long_tip_translated() { $prefix = variable_get("gallery_filter_prefix", "G2"); return t('

Gallery2 Filter:

You can link to items in your embedded Gallery2 using a special code. This code will be replaced by a thumbnail image that is linked to the actual item in your Gallery.

Syntax:

['. $prefix .':item_id n=number type=type size=number class=name frame=name album_frame=name item_frame=name]
'); } function _gallery_g2image_help() { return t('

Gallery Image Assist (g2image)

Support for g2image in either Standalone or TinyMCE is available to simplify adding images already in your Gallery2 albums into your Drupal nodes.

Caution: By default, Drupal uses the \'Filtered HTML\' input format for adding content to the site and the default settings cause the <img> tags added by g2image to be removed. Check the TinyMCE documentation for instructions on how to avoid this.

'); } ?>