Meta-description and Meta-keywords

Permalink 1 user found helpful
Hi all,

I try to get different meta-descriptions and meta-keywords for each site as this seems to be important for SEO.
Of course I made the specific entries in the page properties parts,
but if I have a look to the code in the browser there is no meta-description and no meta-keywords, I have just entries like

"<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>MySite :: Home</title>
<meta name="generator" content="concrete5 -" />

Has anybody an idea how to solve that?

Thank you very much, Kai

View Replies:
KaiTrallafitti replied on at Permalink Reply
Allright, I got it, I copied the file "header_required" to c5/elements/header_required.

Then I did like:

$akd = $c->getCollectionAttributeValue('meta_description');
$akk = $c->getCollectionAttributeValue('meta_keywords');
<title>my title</title>
<meta name="description" content="<?php echo $akd; ?>">
<meta name="keywords" lang="de" content="<?php echo $akk; ?>">