This topic is locked
[SOLVED]

  Meta Description Tag

5/22/2012 4:44:45 PM
PHPRunner General questions
author

I thought I had the Meta description tags working but perhaps I was dreaming?? Here is what is in my 'pedigree_view.htm' template file:

<META name="description" content="{$custom_description}">


And here is what is in my 'pedigree_events.php' file - before display:

$custom_description="";

and

$xt->assign("custom_description","Westie Breeders must research ancestries for their

breeding stock to assure they produce only the healthiest Westie Puppies.

This is a Five-generation pedigree for West Highland White Terrier " . $thisDogRow_value['RegName']);


and this is what is in my <head> section for one of the pedigrees
<html lang="en">
<head>
<title>Westie Breeder generated Pedigree for A and M's Truffles</title>
<meta http-equiv="X-UA-Compatible" content="IE=7">
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<link REL="stylesheet" href="styles/default.css" type="text/css">
<link REL="stylesheet" href="styles/PurificGreen/style.css" type="text/css">
<link REL="stylesheet" href="pagestyles/view2.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="styles/defaultIE.css" type="text/css">
<link REL="stylesheet" href="styles/PurificGreen/styleIE.css" type="text/css">
<link REL="stylesheet" href="pagestyles/view2IE.css" type="text/css">
<![endif]-->
</head>
Note my title tag works and I did them pretty much the same way.

501410 5/23/2012

I figured it out. The <META name="description", etc. is not in the template - I added it myself. So, when I upgraded to 6.1, the template file was overwritten and no longer contained the description META tag. So, I put it back and uploaded the file with my additions and now it works just fine.
Perhaps adding the Meta description would be a good thing for the next revision of phprunner??



I thought I had the Meta description tags working but perhaps I was dreaming?? Here is what is in my 'pedigree_view.htm' template file:

<META name="description" content="{$custom_description}">


And here is what is in my 'pedigree_events.php' file - before display:

$custom_description="";

and

$xt->assign("custom_description","Westie Breeders must research ancestries for their

breeding stock to assure they produce only the healthiest Westie Puppies.

This is a Five-generation pedigree for West Highland White Terrier " . $thisDogRow_value['RegName']);


and this is what is in my <head> section for one of the pedigrees
<html lang="en">
<head>
<title>Westie Breeder generated Pedigree for A and M's Truffles</title>
<meta http-equiv="X-UA-Compatible" content="IE=7">
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<link REL="stylesheet" href="styles/default.css" type="text/css">
<link REL="stylesheet" href="styles/PurificGreen/style.css" type="text/css">
<link REL="stylesheet" href="pagestyles/view2.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="styles/defaultIE.css" type="text/css">
<link REL="stylesheet" href="styles/PurificGreen/styleIE.css" type="text/css">
<link REL="stylesheet" href="pagestyles/view2IE.css" type="text/css">
<![endif]-->
</head>
Note my title tag works and I did them pretty much the same way.