Here is some code for inserting the TITLE of an image from the new JA8 INPUT field on the GUI.
The following code puts a TiTle on the Slide page.
Ideally this should be placed above the image in SLIDE.HTT
<!-- If exists display JAlbum GUI Slide Title otherwise display title extracted from photo IPTC data -->
<h3>
<ja:if exists="fileTitle">${fileTitle}</ja:if>
<ja:else>
<ja:if exists="meta"><%= meta.get("Iptc.Object Name") %></ja:if>
</ja:else>
</h3>
My thanks to Heinz-Peter for help with the script.
Also you can use the IMAGE TITLE in the HEAD section of SLIDE.HTT as follows:
<!-- use GUI slide file title or photo name for meta description -->
<meta name="description" content="<ja:if exists="fileTitle">${fileTitle}</ja:if><ja:else>$label</ja:else>">
<!-- use GUI slide file title or photo name for page title -->
<title><ja:if exists="fileTitle">${fileTitle}</ja:if><ja:else>$label</ja:else></title>
And in image source so that the image title displays as the
alt text and
title tool tip text for a displayed image.
<img src="$imagePath" width="$imageWidth" height="$imageHeight" title= "<ja:if exists="fileTitle">${fileTitle}</ja:if><ja:else>$label</ja:else>"alt= "<ja:if exists="fileTitle">${fileTitle}</ja:if><ja:else>$label</ja:else>">
changed from this:
<!-- <img src="$imagePath" width="$imageWidth" height="$imageHeight" alt="$label"> -->
Edited by: John Simpson on 22-Jun-2008 18:31