April 10, 2007
Currently in Lightroom it is possible to add a single Web or Mail link in the Flash Gallery. For a Mail link you put the Link name in the ‘Contact Info’ box and use ‘mailto:firstname.lastname@example.org’ in the ‘Web or Mail Link’ box. For a Web link, simply put the http link in this box instead, e.g. put http://lightroom-news.com into the ‘Web or Mail Link’ box.
This gives a very basic link to get back to the home page. Personally I’d prefer a way to allow visitors to get to other areas on my site from here. As it wasn’t immediately obvious how to do this, I had to dig around a little. Presented here for you is the fruit of my efforts:
The first thing I tried was entering a series of href items into the Link section, but this didn’t work for me. Next I tried hrefs in the Contact Info box instead and viola, I got a small menu working. The key here was to make sure the “Web or Mail Link’ box was empty. I discovered then that there was a 150 character limit in the code that prevented long menus. This prompted me to discover how to change the code to make a longer menu.
On Mac Right click on the Adobe Lightroom.app Icon (or Ctrl Click on a 1 button mouse) and select ‘Show Package Contents’. Open the Contents folder and then open Plugins. Inside Plugins Right Click on Web.agmodule and ‘Show Package Contents’. Navigate to Resources/galleries/bluefire_gallery from there.
(Editor’s Note: you’ll notice that if you edit the application “Package”, you are actually altering the application. You should do this only on a copy of the Lightroom application in the event you want to revert to Lightroom original state.)
Open the file galleryMaker.xml with a text (or HTML) editor and go to line 451 where you will see the following code:
<mx:TextInput ag:maximumLength=’150‘ ag:resizeToFitTextHeight=”true” id=”contactInfoName” ag:layout=”text_color=AgPanel.bright_text_color,”/>
Change the 150 to 250 or 300 and save.
PC users can open Web.agmodule with a free resource editor such as XN Resource Editor. Run this program and navigate to the bluefire_gallery to edit it.
Open Lightroom and select the Lightroom Flash Gallery. Go to the ‘Contact Info’ box and enter a series of html links. Make sure the ‘Web or Mail Link’ box is empty also.
You can see mine in the screen capture here. As the content page is down a folder level I’ve included a call to go up a level in each link e.g. <a href=”../index.html”>. If you have galleries down lower in the site (eg inside a galleries folder), then you need to call back up higher e.g. <a href=”../../index.html”> and so on depending how deep the gallery lies on the site.
To see an example of this in operation you can view the gallery I created when making this tutorial. Enjoy!
Update: As my Editor has pointed out, this is indeed altering the application. For those who are a little less adventurous, you can copy this gallery into the Lightroom Web Gallery folder. On Mac it’s located at USER/Library/Application Support/Adobe/Lightroom/Web Galleries, where USER is your login name. On PC it’s located at C:\Documents and Settings\USER\Application Data\Adobe\Lightroom\Web Galleries (again where USER is your login name). Please note, Application Data is a hidden folder, so make sure you set hidden files to visible. Also for both Mac and PC the folder Web Galleries must be created by the user initially.
Once you’ve copied the bluefire_gallery into this folder, you need to make other changes to galleryMaker.xml to allow Lightroom to see it.
On line 7 we see this code:
<galleryName>$$$/WPG/Templates/Flash/Bluefire1=Lightroom Flash Gallery</galleryName>
Change Lightroom Flash Gallery to a name of your choosing. This is the name that appears in the Gallery pane in Web.
Finally on Line 23 we see:
Change com.adobe.wpg.flash.bluefire1 to something of your own choosing. This is the internal identifier to allow Lightroom to see it as a different Gallery to Lightroom Flash Gallery.
Restart Lightroom and your new gallery is now visible. Again enjoy!
Further Update: Thanks to Micah Bowers from Bluefire, who has looked into the PC problem listed in the comments. The issue seem to be in the way the PC escapes the < and > characters, causing them to appear as text rather than as actual links. The most likely reason is to prevent the gallery hanging when a tag is unfinished.
The solution to this is only on a gallery by gallery basis, unfortunately. In your exported gallery go to the resources\mediaGroupData folder and open the group.xml in a text editor. On line 15 there is a <contactName></contactName> tag. Between the tags is what gets put in the gallery as Contact Info, so copy and paste the text from the Contact Info in Lightroom. Save the file. Go back up to the main gallery folder and double click on the index.html to view the changes.