can album.tpl "know" when it's the top-level album?
|Posted: Wed, 2006-10-04 01:13|
I have a website for a catalogue and am using Gallery to organize the pictures -- it is looking really good!
Some items in the catalogue have only one photo, and some have more than one photo. When an item has one photo, I just want to add it as an "item". When an item has more than one photo, I want to add it as a "sub-album".
I am also using the lightbox js plugin for close-ups of my pictures. I have managed to modify album.tpl with an if statement that says if an item is a sub-album, don't try to "lightbox" it. However, I'd also like to make it so that if I'm in the top-level album/directory, no pictures will be "lightboxed."
The site in progress is at http://joshuahellerrarebooks.managebest.net/artistsbooks/
Is there some sort of variable or identifier that I could use to say, essentially, "if the current album is the top-level album, then ..."? Or alternatively and perhaps more extensibly, "if the current album has XX [or YY] id, then ..."
Thank you for advice!