Does anyone know how I might go about inserting meta tags such as "description" and "keywords" into my master pages and page layouts in a MOSS 2007 external facing site?
Ideally, when an author or editor is editing a page, I want field controls for the meta description and keyword tags, so the author can fill those in and save those with the page content. The problem is that I can't put a server control like a contentplaceholder inside of the content="" attribute on a meta tag. I've tried the following:
<meta name="description" content="<asp:ContentPlcaHolder ID="PlaceHolderMetaDescription" runat="server"></asp:ContentPlaceHolder>" />
The SharePoint designer doesn't like that at all, and the stuff in the content attribute just gets html encoded. following don't work either:
<meta name="description" content='<asp:ContentPlaceHolder ID="PlaceHolderMetaDescription" runat="server"></asp:ContentPlaceHolder>' />
<meta name="description" content="<asp:ContentPlaceHolder ID='PlaceHolderMetaDescription' runat='server'></asp:ContentPlaceHolder>" />
<meta name="description" ID="metaDescription" runat="server" content='<asp:ContentPlaceHolder ID='PlaceHolderMetaDescription' runat='server'></asp:ContentPlaceHolder>' />
Anybody have any ideas how I can get this to work?