I do not know how to write Javascript and I’m not trying.
I am working with a program called Jalbum that creates web galleries. It has a bazillion “skins” written by users working from basic files they provide. I want to tweak a basic starter template to do one particular thing differently, and I’m not sure how to do it.
There are settings in the Jalbum program itself for whether to link to Jpeg images or to generated HTML pages. I specifically chose this skin, “simplicity” because rather than creating some fancy Flash/lightbox/dancing fairies photo show, it generates simple HTML pages that are named after the name of the image: stoid_pic1.html, stoidvacation.html, etc.
However, the TITLE of the page, the part at the top of the page that appears in the code <title>…</title> is currently set to simply be the same name as the ALBUM title, ie Stoids Picture Album. So it’s Stoids Picture Album on every image page of every individual album and I do not want that.
I want the individual page titles to be taken from the image title, the same way the HTML document name is taken from the image title.
In other words, I want stoids_vacation.html to have a title of stoids_vacation. It would be even better if it was title Stoids Vacation, but I realize that’s hoping for a bit much.
So, here is code that I believe is needed.
This is the entire head section from the slide template file in the Simplicity skin (is this the sort of thing I should put CODE tags around?):
And of course, out of all that it appears the key part is in blue:
and to my clueless but reasonably intelligent eyes it appears that something about the albumTitle, “|” is key… it looks to me that somehow it’s asking if there is a file title and if there isn’t, default to the album title. So, if I’m right, the question becomes where does it look for fileTitle?
As always, any help is always appreciated.