Display Album Name and File Name in photo header default

pm3500

Joined: 2005-11-30
Posts: 5
Posted: Fri, 2005-12-16 21:48

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version:
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system:
Web browser/version (if applicable):

I want to display the album name and photo name at the top of each photo using photo.header.default

the current script has
<?php echo $gallery->album->fields["title"] ?>
for the album name

if I use
$gallery->album->getPhotoId($GLOBALS['index'])

I get the picture name instead of the picture title
i.e., this_picture as it is listed in the album folder instead of title This Picture as it is listed in the page title

I tried
<?php echo $gallery->album->fields["title"] ?> :: <?php echo $title ?>

because that is how it is written in view_phptp.php, however the album title shows but the picture title does not show up

what do I need to add to get the picture title rather than the picture name as stored in the album folder to show up?