I know there is a META tag module but based on our SEO requirements we had to implement it differently. We defined attributes in the base template which will hold values for the META tags.

Then in our base layout we retrieved values from the current item in to the meta tag definitions.

" />
your link to better business solutions

Meta Tags in Sitecore

I know there is a META tag module but based on our SEO requirements we had to implement it differently. We defined attributes in the base template which will hold values for the META tags.

Then in our base layout we retrieved values from the current item in to the meta tag definitions. Here is some sample code:

<title><%= Sitecore.Context.Item["Page Title"] %></title>
<meta id=”MetaDescription” name=”<%= Sitecore.Context.Item["MetaDescription"] %>” />
<meta id=”MetaKeywords” name=”KEYWORDS” content=”<%= Sitecore.Context.Item["MetaKeywords"] %>” />
<meta name=”title” content=”<%= Sitecore.Context.Item["metatitle"] %>” />
<meta name=”page-topic” content=”<%= Sitecore.Context.Item["page-topic"] %>” />
<meta name=”index” content=”<%= Sitecore.Context.Item["index"] %>” />

We are in the final testing stage for releasing www.WebDatamation.com running purely on Sitecore. (Windows 2008 with SQL Server 2008)

Tagged as: , , , , , , , , , , , , , , , , , , , , , , ,

1 Responses »

  1. i still use meta tags and this is a new learning for me
    thanks for sharing

Leave a Response

Please note: comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.