Looking for Meta Tag Generator for CS 2008

rated by 0 users
Answered (Verified) This post has 1 verified answer | 2 Replies | 2 Followers

Not Ranked
9 Posts
Points 180
ddouglas posted on Tue, Oct 14 2008 6:49 AM

does cs 2008 have built-in functionality to generate meta tags?  if not, does anyone know of a meta tag generator tool that plays nicely with cs 2008?  any info would be helpful.

thanks in advance!

  • | Post Points: 35

Answered (Verified) Verified Answer

Not Ranked
15 Posts
Points 165
Answered (Verified) sowacs replied on Tue, Oct 21 2008 3:20 PM
Verified by Alex Crome

I managed to get the following working for weblogs:

Add to ~/themes/blogs/(your blog theme)/post.aspx :

<%@ Import Namespace="CommunityServer.Components" %>

...

<asp:Content ID="Top" ContentPlaceHolderID="Top" runat="Server">
<% 

Head.AddMetaDescription((CSContext.Current.GetCurrent<Post>()).ForceExcerpt,CSContext.Current.Context);

%>
</asp:Content>

Add to ~/themes/blogs/(your blog theme)/theme.master :

<asp:ContentPlaceHolder ID="Top" runat="Server"/>

right before <head runat="server">.

2008.10.22 - change: use the CS Head component to do this.

  • | Post Points: 5

All Replies

Top 25 Contributor
Male
2,177 Posts
Points 30,210
CS Developers
alowe replied on Tue, Oct 14 2008 10:31 AM

CS does not automagically build meta tags for pages. At this time, you can only create one set of meta tags/keywords inside CS (help article) and those are applied to all pages in the site.

  • | Post Points: 5
Not Ranked
15 Posts
Points 165
Answered (Verified) sowacs replied on Tue, Oct 21 2008 3:20 PM
Verified by Alex Crome

I managed to get the following working for weblogs:

Add to ~/themes/blogs/(your blog theme)/post.aspx :

<%@ Import Namespace="CommunityServer.Components" %>

...

<asp:Content ID="Top" ContentPlaceHolderID="Top" runat="Server">
<% 

Head.AddMetaDescription((CSContext.Current.GetCurrent<Post>()).ForceExcerpt,CSContext.Current.Context);

%>
</asp:Content>

Add to ~/themes/blogs/(your blog theme)/theme.master :

<asp:ContentPlaceHolder ID="Top" runat="Server"/>

right before <head runat="server">.

2008.10.22 - change: use the CS Head component to do this.

  • | Post Points: 5
Page 1 of 1 (3 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com