Add Caption to Page Title in PhotoView.

JadeDragon
JadeDragon's picture

Joined: 2003-02-15
Posts: 332
Posted: Mon, 2003-05-26 15:46

If you want to have your name of the photo in your title on "view_photo"

Find the code between your <title> and </title> tags in view_photo.php.
Replace it with this.

<title><?php echo $gallery->app->galleryTitle ?> :: <?php echo $gallery->album->fields["title"] ?> :: 
 <?php echo $gallery->album->getCaption($index) ?> </title>

Now what ever you put in your captions will show up in the title of the page. A big plus for page rankings.

=)
Jade

 
JadeDragon
JadeDragon's picture

Joined: 2003-02-15
Posts: 332
Posted: Sat, 2003-06-28 15:36

bump up, a couple people contacted me on this one.

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Sat, 2003-06-28 16:03

Just thought I'd point out - though this is a great idea - in 1.3.4 you can also specify a title as an custom field.