Metadata

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
sonictrip
Forum Members
Forum Members
Posts: 99
Joined: Thu Jan 24, 2008 4:11 pm

Metadata

Post 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
Last edited by sonictrip on Wed Feb 06, 2008 9:41 am, edited 1 time in total.
alby

Re: Metadata

Post 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
sonictrip
Forum Members
Forum Members
Posts: 99
Joined: Thu Jan 24, 2008 4:11 pm

Re: Metadata

Post 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?
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Metadata

Post by Nullig »

In the metadata textarea, you need to use proper metadata syntax, like:



Nullig
sonictrip
Forum Members
Forum Members
Posts: 99
Joined: Thu Jan 24, 2008 4:11 pm

Re: Metadata

Post by sonictrip »

Oh my god, i never even thought of that, makes sense! Thanks a million! :)
Post Reply

Return to “CMSMS Core”