Keywords and Description Meta Tags Missing

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
axelS
Posts: 31
Joined: Thu 20. Nov 2003, 16:47
Location: Münster, Germany
Contact:

Keywords and Description Meta Tags Missing

Post by axelS »

Hi Oliver,

First of all a BIG thank you for putting so much efford in developing a CMS! I've been looking long and hard for a suitable system, and believe this is it ;D

I'm all patched up to the latest release and all permissions are fine. However, when I enter keywords and description it does not seem to generate them in the HTML.

While I'm at it, the aliases don't seem to work either.

I think I've done everything by the book though ;)

Any thoughts?

MTIA

PS: http://www.brightercomputing.com/cms/

Axel
User avatar
Oliver Georgi
Site Admin
Posts: 9907
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Yes it's true keywords and description does not work at the moment. But it's easy to integrate asap.

What do you mean with aliases don't work? Where is your problem.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
ehoeven
Posts: 3
Joined: Thu 12. Feb 2004, 10:41
Location: The Haque
Contact:

Add meta tags to phpWCMS site

Post by ehoeven »

You should add/replace this in the content.func.inc.php file at the last lines (around 393):

-----------------------------
Code below makes also the description meta working!!
-----------------------------


// add possible redirection code (article summary) to $block["htmlhead"];
$block["htmlhead"] = $content["redirect"]["code"].$block["htmlhead"]."\n";
// insert description meta tag if not definied

if(!stristr($block["htmlhead"], '"description"') && $content["articles"][$aktion[1]]["article_summary"]) {
$block["htmlhead"] .= '<meta name="description" content="';
$block["htmlhead"] .= html_specialchars($content["articles"][$aktion[1]]["article_summary"])."\">\n";
}
// insert keywords meta tag if not definied
if(!stristr($block["htmlhead"], '"keywords"') && $content["articles"][$aktion[1]]["article_keyword"]) {
$block["htmlhead"] .= '<meta name="keywords" content="';
$block["htmlhead"] .= html_specialchars($content["articles"][$aktion[1]]["article_keyword"])."\">\n";
}
// insert author meta tag name
$block["htmlhead"] .= '<meta name="author" content="';
$block["htmlhead"] .= html_specialchars($content["articles"][$aktion[1]]["article_username"])."\">\n";
$block["htmlhead"] .= '<meta name="publisher" content="www.tuinenvijver.nl">
<meta name="robots" content="all">
<meta name="revisit-after" content="2 weeks">
<meta name="Rating" content="General">
<meta name="Language" content="nl">
<meta name="Generator" content="http://www.added-value.nl">
<meta name="distribution" content="Global">
<meta name="Copyright" content="2004 Tuin en Vijver">';
User avatar
Oliver Georgi
Site Admin
Posts: 9907
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

This is working in current release ;-) so no need to implement above scripts enhancement.

...ah sorry - have seen you choose summary field of article. That's good and not so good - summary maybe much to long for description. I think it is useful only on base of structure level. Content is delivered with every page - so no need to add it twice the time.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply