Page 1 of 1

Description meta tag

Posted: Mon 12. Jul 2004, 15:14
by jamba
The keywords meta tag is not as important as it used to be and it does not always improve your site's rating. The Description tag however, is much more relevant, so can we have the article description added to a description meta tag by default?

Also, the accepted standard for page titles is Site Name - Page Name, not Site Name | Page Name. Perhaps this could be an option set in the config file?

Posted: Mon 12. Jul 2004, 15:19
by Pappnase
hello

sorry for what did you need that!? you can place in the header of you template the metatag! is this not enough?! :roll:

Posted: Mon 12. Jul 2004, 15:29
by jamba
Hmmm... never thought of that :oops:

Was looking at the html and noticed that keywords were automatically plonked in and in my haste thought I'd suggest an improvement.

I'll get on and start thinking first :D

Posted: Tue 13. Jul 2004, 11:28
by jamba
Having tried this further, there does seem to be a problem, in that my description meta tag is not being output:

Here's a shot of my article in the backend:

Image

And here's what's ouput on the frontend:

Code: Select all

<head>
<title>My Website | Article title in here</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="key1 key2 key3">
<script src="phpwcms_template/inc_js/frontend.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="phpwcms_template/inc_css/frontend.css">
</head>
You can see that my keywords are there, but no description.

I am using the latest release on php v4.3.5, so my environment should be fine too, no?

Posted: Wed 21. Jul 2004, 17:29
by jamba
I've got around this now by making a very minor change to the code. Yuo can see it in the Hacks and Mods forum at http://phpwcms.de/forum/viewtopic.php?p=18214

Re: Description meta tag

Posted: Wed 21. Jul 2004, 20:41
by Jari
jamba wrote:The keywords meta tag is not as important as it used to be and it does not always improve your site's rating. The Description tag however, is much more relevant, so can we have the article description added to a description meta tag by default?

Also, the accepted standard for page titles is Site Name - Page Name, not Site Name | Page Name. Perhaps this could be an option set in the config file?
Hi.

I want to change the same thing, this "Site Name | Page Name" to "Site Name - Page Name" where can I change this ?

Re: Description meta tag

Posted: Wed 21. Jul 2004, 21:22
by Pappnase
Jari wrote:
jamba wrote:The keywords meta tag is not as important as it used to be and it does not always improve your site's rating. The Description tag however, is much more relevant, so can we have the article description added to a description meta tag by default?

Also, the accepted standard for page titles is Site Name - Page Name, not Site Name | Page Name. Perhaps this could be an option set in the config file?
Hi.

I want to change the same thing, this "Site Name | Page Name" to "Site Name - Page Name" where can I change this ?
hello

goto the layout section!
there you can set it up! what should be shown and not! and you can choose there the sitename. it's is in the first half of the layout setting page in admin menue.

Posted: Wed 21. Jul 2004, 21:56
by Jari
I was thinking of the character "|" that I want to change to the character "-" instead ?

Posted: Thu 22. Jul 2004, 10:44
by jamba
Hi, Jari.

You need to open include/inc_front/content.article.inc.php and search for the following code block:

Code: Select all

if($row["acat_name"] && $pagelayout["layout_title_cat"]) {
				if($content["pagetitle"]) $content["pagetitle"] .= " | ";
				$content["pagetitle"] .= $row["acat_name"];
			}
			if($row["article_title"] && $pagelayout["layout_title_article"]) {
				if($content["pagetitle"]) $content["pagetitle"] .= " | ";
				$content["pagetitle"] .= $row["article_title"];
			}
Just replace the "|" characters with the character of your choice ("-" is the convention) :D

Posted: Thu 22. Jul 2004, 11:45
by Jari
Many thanks jamba :D