Description meta tag

Use GitHub to post feature requests for phpwcms.
Locked
jamba
Posts: 50
Joined: Fri 23. Apr 2004, 11:18
Location: UK
Contact:

Description meta tag

Post 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?
Russ Back :D
Jamba Solutions
http://jambasolutions.com
Pappnase

Post 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:
jamba
Posts: 50
Joined: Fri 23. Apr 2004, 11:18
Location: UK
Contact:

Post 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
Russ Back :D
Jamba Solutions
http://jambasolutions.com
jamba
Posts: 50
Joined: Fri 23. Apr 2004, 11:18
Location: UK
Contact:

Post 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?
Russ Back :D
Jamba Solutions
http://jambasolutions.com
jamba
Posts: 50
Joined: Fri 23. Apr 2004, 11:18
Location: UK
Contact:

Post 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
Russ Back :D
Jamba Solutions
http://jambasolutions.com
Jari
Posts: 107
Joined: Thu 15. Apr 2004, 11:31
Location: Sweden
Contact:

Re: Description meta tag

Post 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 ?
Pappnase

Re: Description meta tag

Post 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.
Jari
Posts: 107
Joined: Thu 15. Apr 2004, 11:31
Location: Sweden
Contact:

Post by Jari »

I was thinking of the character "|" that I want to change to the character "-" instead ?
jamba
Posts: 50
Joined: Fri 23. Apr 2004, 11:18
Location: UK
Contact:

Post 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
Russ Back :D
Jamba Solutions
http://jambasolutions.com
Jari
Posts: 107
Joined: Thu 15. Apr 2004, 11:31
Location: Sweden
Contact:

Post by Jari »

Many thanks jamba :D
Locked