Integration:Drupal:FAQ - Gallery Codex
Personal tools


From Gallery Codex

Revision as of 15:33, 1 July 2013 by Bharat (Talk | contribs) (Text replacement - "" to "")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

NOTE: This documentation is for the g2bridge module for Drupal 4, 5 or 6.
For Drupal 7+, please refer to the G2Drupal Bridge

Where to look for help

There is now a dedicated forum for Drupal integration

Or you can check for similar issues in:

If you want to post a question you can use any of these, but I would recommend the Issues tracker for bug reports and feature request and the Integrations Forums for support requests.

Please include the following information in your posts:

Drupal version:
Gallery2 version:
gallery.module version:
Directory structure for Drupal and Gallery2

How do I make the thumbnail links open to the standalone Gallery2 not the embedded Gallery2?

In short this would be a bad idea. There is much more to embedding Gallery2 into Drupal than just the visual aspects. For example, let's say that you allow this and then go to your standalone version of Gallery2 and delete/change a user. The embed version has no idea that you have done this and so your users are no longer synced. Another example is session handling. You need to ask yourself what you plan to gain by bypassing the embedded Gallery2. Normally it is theme or visually related. For example, you may have Drupal blocks that you do not want to display on Gallery2 pages -- this is easily done (see below). Another example is that your Gallery2 theme does not work well inside Drupal. This is more of a problem admittedly and will require work to fix it.

How do I not display the Gallery Block (or any other block) when viewing Gallery2 pages?

Simply put 'gallery/*' into the block config page in the area 'Show Block on Every Page except those listed'.

How can I change the link from /gallery to /photos (or other)?

This is not currently possible to do, as Drupal expects the gallery.module to use the 'gallery' link. You can add a URL Alias (admin/build/path) in Drupal to link /photos and /gallery so that someone can navigate to and get to your gallery, but all the internal links will still be /gallery based and so all your albums and photos would still be in /gallery. However you can patch the module manually ( and the D6 version will contain an option to change the gallery base.

How do I disable the 'Register' link that Gallery2 includes?

You need to disable/uninstall the Register plugin in Gallery2 (Site Admin -> Modules). Also make sure that you have removed the Login item from your Gallery2 sidebar (Site Admin -> Themes) to avoid bypass of the Drupal login.