Where does header html (e.g. keyword metags) reside?

SalemKayaker

Joined: 2004-12-25
Posts: 27
Posted: Mon, 2005-01-17 17:22

If I missed it somewhere in the documentation, I apologize but I cannot see where one can insert description and keyword meta tags for either the Gallery as a whole or for individual albums.

I found the html wrapper stuff but that gets inserted in the body of the page. Where does the html that ends up in the header section reside?

TIA

SalemKayaker

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Mon, 2005-01-17 18:53

in util.php you will see a function called function metatags() { you can add meta tags in that function. It will not be for spacific albums it will be gallery wide.

If you need album spacific meta tags then you would need a new fuction ( a copy of this one) and call it in view_album.php

Dave

 
transco

Joined: 2005-01-10
Posts: 22
Posted: Tue, 2005-01-18 18:54

Hi Dave,
I am also interested in adding meta. I tried as per your response to SalemKayaker but it appeared that util.php only allows 4 metatags. Where exactly do I need to place the tags.

Appreciate you help, your gallery is great.

Thanks
Transco :D v

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Tue, 2005-01-18 19:07
function metatags() {
	global $gallery;

	echo '<meta http-equiv="content-style-type" content="text/css">';
	echo "\n  ". '<meta http-equiv="content-type" content="Mime-Type; charset='. $gallery->charset .'">';
	echo "\n  ". '<meta name="content-language" content="' . str_replace ("_","-",$gallery->language) . '">';
	echo "\n\n";
}

you can add as many as you wish like:

function metatags() {
	global $gallery;

	echo '<meta http-equiv="content-style-type" content="text/css">';
	echo "\n  ". '<meta http-equiv="content-type" content="Mime-Type; charset='. $gallery->charset .'">';
	echo "\n  ". '<meta name="content-language" content="' . str_replace ("_","-",$gallery->language) . '">';
	echo "\n  ". '<meta name="DESCRIPTION" content="your photos on your website">';
	echo "\n  ". '<meta name="KEYWORDS" content="">';
	echo "\n  ". '<meta name="ROBOTS" content="INDEX,FOLLOW">';
	echo "\n\n";
}

Change to your requirements

 
transco

Joined: 2005-01-10
Posts: 22
Posted: Tue, 2005-01-18 22:18

Thanks Dave, appreciate your help