PDA

View Full Version : $exhibition_name_html availability in photo template?


segal3
9th of October 2006 (Mon), 14:15
What variable can I use to display only the exhibition name, without any HTML attached? (Trying to drop it into the <title>) - $exhibition_name_html doesn't seem to work...

Pekka
9th of October 2006 (Mon), 14:17
I assume your are talking about list.php

$exhibition_name

There is also

$browser_title_html

segal3
9th of October 2006 (Mon), 14:20
Thanks - Stupid that I didn't try $exhibition_name by itself :rolleyes: :)

No, the photo.php page. I don't like $browser_title_html because it includes the photo title (which is defaulted to the file name for all my photos). I drop the photo ID into the header as well for easy referencing.

Pekka
9th of October 2006 (Mon), 14:59
No, the photo.php page. I don't like $browser_title_html because it includes the photo title (which is defaulted to the file name for all my photos). I drop the photo ID into the header as well for easy referencing.

If you do that you definitely loose Google. Google loves page content name + few keywords in title.

segal3
9th of October 2006 (Mon), 15:34
My previous setup had in the <title></title> header (not exact variable names):
$Filename, $Description by $Photographer (in photo gallery $exhibition_name)

and it always did well in google rankings. But the filename didn't help at all as it is often "mg 1863w" or something along those lines. Why would Google prefer that?

Pekka
9th of October 2006 (Mon), 19:15
I did not say filename helps. Plain english helps, descriptive titles and good non-repetitive keywords.

The most important for Google is
1. page title
2. photo header (H1 tag)