
Every tool has at least one intended purpose. Most of the best tools also have a number of unintended purposes. For example, the screwdriver’s intended purpose is to drive and remove screws. But it can also be used to pry open paint cans, as a pick to break things, or as a weapon, to name but a few of its myriad other unorthodox uses.
The intended purpose of the Adobe Lightroom Web module is to produce standalone web photo galleries. With a bit of finagling, however, it can also produce a photo gallery index that joins your Lightroom-produced, standalone galleries together.
TTG XML Album Index does the finagling for you.
XML – like fairy magic – makes good things better.
TTG XML Album Index serves the same purpose as the (now discontinued) TTG Gallery Index. It creates an album index, a table of contents, linking all of your web galleries together.
The original TTG Gallery Index suffered from a fatal flow, however. To update the index with new galleries, the entire index had to be regenerated and uploaded anew to the website. Hardly practical.
With TTG XML Album Index, updates are a breeze. The user creates and uploads their index once. To add galleries to the album index, the user need only upload a thumbnail image and set a handful of attributes for the gallery in the album index’s XML file. Yes, you’ll need a text-editor, but no coding experience is necessary. Read below for details.
TTG XML Album Index is written in Lua. It requires Lightroom 1.3 or higher, and a web server running PHP. Updates require an FTP client and a text-editor. Coding experience is not necessary.
TTG XML Album Index outputs valid XHTML and CSS.
TTG XML Album Index isn’t difficult to use, but neither is it as straight forward as other Web module plugins. Follow these guidelines, though, and you’ll have your index together in no time.
To begin with, produce some galleries. Use any type of gallery you want. When setting up the galleries, though, it’s probably a good idea to set Contact Info, located in the Labels pane, to “Gallery Index” and set the web link to the future location of your TTG XML Album Index index.html file. This will allow users to jump back to the gallery index from your individual galleries.
Once you have your galleries made, it’s time to bind them!
The first and most important steps of TTG XML Album Index creation happen in the Library module, so that’s where you need to begin.
Create a new collection or use the Quick Collection. For each of your galleries, select a representative image and add that image to the collection. These images will become the thumbnails in your index, so develop them however you’d like your thumbnails to show up. If you want square thumbnails, use the Develop module to crop them with a 1:1 ratio.
When you’re finished developing your thumbnails, return to the Library module and open your Metadata pane. Under metadata, fill in the following items according to these guidelines:
Title – Gallery title.
Caption – Gallery description.
Copyright – URL of the gallery the image is representing. URLs may be relative or absolute, but should point to each gallery’s index.html file.
That done, move to the Web module and select TTG XML Album Index from the Gallery pane in the upper right. Configure the gallery however you’d like.
Under the Image Settings pane, you will find three items: Title, Caption and GalleryLink. Ensure that all three items are enabled.
One-by-one, set the drop-list for each item to “Custom Settings” and select “Edit” to specify the output.
Title should be set to output the IPTC field “Title”.
Caption should be set to output the IPTC field “Caption”.
GalleryLink should be set to output the IPTC field “Copyright”.
This done, you’re ready to Export your Album Index. Before you can use it, however, there’s something needs be done.
Open the exported album index folder and Delete the index.html file. The index.html file exists only for the Lightroom Web module preview. On the web, the index.php file is the one that will be used to run the gallery.
That done, upload the gallery to your web server and take it for a test drive.
Updating your album index with new galleries is easy. Each gallery listed in your album index is powered by a piece of code in the galleries.xml file that looks like this:
<album>
<thumbnail>thumbnails/thumbnail.jpg</thumbnail>
<title>Gallery Name</title>
<description>Gallery Description</description>
<url>/galleryURL/</url>
</album>
To add a gallery, you need but add a new instance of the code above, filling in your individual album details.
Use Lightroom to generate a new album index containing only the gallery or galleries you’d like to add to your existing index. You don’t need to waste your time configuring the gallery appearance, so just setup your metadata as described above in Getting Started, develop your thumbnail(s) and hit export.
In the newly exported index, we’re interested in two things only: the thumbnails and the galleries.xml file.
Using your FTP client, upload the new thumbnails to your web server; add them to the thumbnails folder of your pre-existing album index.
Next, open the newly exported galleries.xml file in your text-editor. Copy all of the album settings from the file, then append them to the contents of the existing galleries.xml residing on your website.
TTG XML Album Index can be used to index image galleries of any kind, be they TTG, LRG, LR default or otherwise.
In fact, TTG XML Album Index can be used to create an index of just about anything, not just photo galleries. There’s nothing to prevent users from setting links to other types of content, other websites, etc.
TTG XML Album Index would not be possible without the excellent PHP written by my good friend Zach Bardon. In addition to his scripting prowess, Zach is also an excellent musician. Give him a listen.
If you enjoy my work and would like to pay for it, I accept donations via PayPal. Donations are wholly unnecessary, but would be greatly appreciated. Thank you!
Send this article to a friend »
« Next Article | ... ... | Previous Article »