Drupal

Embedding Gallery 3 Photo Links in Drupal Page


drupal g3 link

EDIT. There really is a simpler way, it works on the same principal as my method, just makes use of the embedlinks module in Gallery 3. This is just an easier way to grab the same code. Cheers Dan.

Just thought I would share a way I put thumbnails in Drupal posts, which are sourced and link to my Gallery 3 installation. Rather than hosting duplicates within Drupal itself, which I have done before, this keeps only one copy of the image on my server, in a gallery, where it should be.

Very simply, the gallery is already providing thumbnail links to the photos in the album view. So when looking at the album page containing the photos I want to link to in my Drupal page, I simply turn on something like Firebug in FireFox or Inspect element in Chrome, something that allows me to click on an entity and have it show me the code for that entity.

The image to the left shows and is created by this very method. It shows an album page open, Firebug open and the button to the top of the Firebug window (circled red) you can use to click on the thumbnail you want to use. Firebug then shows you the code surrounding that link. I just copy everything around that thumb, including the <a>...</a> tags.

Website Update

Site's been down recently whilst I have been moving everything to a new (virtual) server.

The main reason for doing this was because I wanted to start using Gallery 3 for my photo gallery. In order to do this I needed to perform a 'gallery 2 import', a handy module in G3 to import your whole G2 installation, including comments and tags.