Anatomy of a Lightroom HTML Gallery
Lightroom HTML galleries used to be written in a mix of XSLT and XML. The simpler coding in Lua makes it a pleasure to create HTML galleries with. You can write Flash galleries in Lua, but because IE doesn’t allow plugin loading on PC Lightroom, you can’t see them in the preview window. Hence 3rd party Flash galleries use the old method for cross platform compatibility.
Lua galleries were introduced in Version 1.3 and have matured somewhat with V2.0. The new syntax is much tidier and more compact. In fact Matthew Campagna shaved 500 lines off one of his galleries for version 2, and my new website in a gallery LRB Portfolio managed close to that also.
So what comprises a Lua Gallery? Well the absolute minimum a gallery can contain is 3 files: galleryInfo.lrweb, manifest.lrweb and a HTML file. Let’s look at them in a little more detail:
galleryInfo.lrweb: This is the heart of the gallery and the file Lightroom uses to define the internals of the gallery and the contents of the panels in the Right panel. In this file you define the control variables, the checkboxes, the sliders and all the other controls of the gallery. You can create custom style sheet through the code here (however, it’s not truly a Cascading Style Sheet as it doesn’t output in your assigned order).
manifest.lrweb: This file tells Lightroom what files to include with the gallery, along with the HTML pages used. You can include image files, CSS files, Javascript files and others with this file.
HTML file: This is the base file for the gallery. It makes calls to variables defined in galleryInfo.lrweb and the custom.css file that is created from it.
The mix of all three is what builds the gallery. You can add your own CSS files and site HTML to the HTML and easily integrate it into your current site design. We’ll be looking at this in more detail in future posts.
In the next post, we start looking at galleryInfo.lrweb in more detail.
Get all outdoorsy with Pentax's Optio WG2 and WG2-GPS
Canon's complement of compacts
Compact cameras: down, but not out
How to use a grey card
Nikon PB4 Bellows Reborn
Worlds Fastest Camera
The New Sony NEX 7
Photojojo iPhone Telephoto Lens review — AudioCast
Photo Accessories that Fail Security Checks
My week with Q
Studio equipment buying guide for beginners
VSCO Film Studio Review
Photo Tips
Lessons in Lighting
Photographing Children in the wedding party
Cattle Country
Creative Photo Valentine Surprise
How to Use Multiple Lights for Dramatic Portraits
Making your own flash diffuser
LR4 free presets: Faded series
Using Sync for Video in Develop
A gift of flowers: unfold your senses
On Set of "Love & Robots" the Film
My Night with Ilford Galerie Gold Silk Fibre
FOTOMOTO - Why I Left











Silhouettes & Photo Contests
Cyan, not just another color
Our 26 best photo projects of 2011
Family Ties That Bind
Animal Group Portraits
A Brief History Of Light & Photography: Part 3 of 3
A Brief History Of Light & Photography: Part 2 Of 3
Lightroom Interview: Kevin Tieskoetter
Always Dream Big
Gallery: Embedded with the Territorial Army
Getty Villa Malibu — 4 Old Faces, 1 Sunken Garden — GALLERY (6 photos)
Going Fast with Light
Wildlife photography for the masses
How much should you charge for a photograph?
Santa Pictures + Marketing for your Business































Comments
This is very cool, Sean. I’m really happy you’re doing this. Thank you.
Sean,
I recently purchased your LRB Portfolio plugin. I found your page detailing how to get into galleryinfo.lrweb to make changes but for the life of me I can not find any file on my computer called galleryinfo.lrweb. I’ve done a search through spotlight and nothing of this name turns up. How can this be? This file must be on a computer with Lightroom shouldn’t it? Any chance you can tell me why this might be happening? Thanks.
What software do you use to run your blog? It’s very well done.
It’s a file called mail.html that needs editing, inside the LRB Portfolio.lrwebengine package. You need to control click on it and ‘Show Package Contents’, inside you’ll see mail.html.
Spotlight doesn’t search inside package files.
It’s just a blogger template Jim. Nothing special. I do use MarsEdit to create posts, it’s just handier than doing it in the browser.
Post new comment