Page 1 of 1

Metadata

Posted: Wed Feb 06, 2008 9:35 am
by sonictrip
Hi,

Im having a little problem with the metadata information. It seems to be getting displayed on the actual front of the webpage, top right instead of being invisible. So i have all my keywords coming up just above the header on the site.
Any ideas why this would be happening?

I have {metadata} in the head of my template like so:

Code: Select all

<head>
<title>{sitename} - {title}</title>
{stylesheet}
{* This is how all the stylesheets attached to this template are linked to *}

{metadata}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}

{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
{* Relational links for interconnections between pages, good for accessibility and Search Engine Optmization *}

{literal}

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">td img {display: block;}</style>
<!--Fireworks 8 Dreamweaver 8 target.  Created Wed Jan 23 12:47:13 GMT+0000 (GMT Standard Time) 2008-->

<__script__ type="text/JavaScript">
<!--
//pass min and max -measured against window width
function P7_MinMaxW(a,b){
	var nw="auto",w=document.documentElement.clientWidth;
	if(w>=b){nw=b+"px";}if(w<=a){nw=a+"px";}return nw;
}
//-->
</__script>
<!--[if lte IE 6]>
<style type="text/css">
#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}
</style>
<![endif]-->
{/literal}
{* The min and max page width for Internet Explorer is set here. For other browsers it's in the stylesheet "Layout: Top menu + 2 columns" *}


<!--[if IE]>
<__script__ type="text/javascript" src="modules/MenuManager/CSSMenu.js"></__script>
<![endif]-->
{* The above JavaScript is required for CSSMenu to work in IE *}

</head>
Any ideas? Thanks! Im using CMSMS v1.2.3

Re: Metadata

Posted: Wed Feb 06, 2008 1:52 pm
by alby
sonictrip wrote: Any ideas? Thanks! Im using CMSMS v1.2.3
Metadata field must be filled with HTML code, for example:

Code: Select all

<meta name="keywords" content="CMSMS" />
Alby

Re: Metadata

Posted: Wed Feb 06, 2008 6:05 pm
by sonictrip
Hi Alby,

Thanks for replying, im not sure i understand you properly though.

In my Global Settings, there's a metadata textarea and inside is this:




On each page though, there is a metadata textarea under "options" and ive put in the keywords there, then under that i put in the meta description in a text box called "Description (title attribute)".

But then {metadata} is entered in on the template between the tags and it just displays all the keywords that i put in "options/metadata" for each page on the actual front of the page at the top where they should be invisible.

Im definitely doing something wrong, any ideas what it could be?

Re: Metadata

Posted: Wed Feb 06, 2008 6:34 pm
by Nullig
In the metadata textarea, you need to use proper metadata syntax, like:



Nullig

Re: Metadata

Posted: Thu Feb 07, 2008 9:58 am
by sonictrip
Oh my god, i never even thought of that, makes sense! Thanks a million! :)