This idea is neither new nor novel. It's one that I stole from a post in the Community Server forums.
When first setting up my blog with Community Server 1, I wanted Google to pick up my website as the website for Sean Winstead. So I changed the markup of default.aspx such that the title element contained the tag "A Precarious Balance : Sean Winstead".
My website then shot up to top of the search results for "Sean Winstead". After trying the same thing with my wife's blog, her website rose from number 9 on the list to number 1. However, I'm now using Community Server 2 and the customization for this is not as straightforward as in CS 1.
In CS 2, the title and meta tags are rendered by the CS:Head control. The CS:Head control will use the site name unless you've done something else to set a title.
One way to set a title is to add the following script in the Page_Load event of your default.aspx file.
<
script language="C#" runat="server">
void Page_Load(object sender, EventArgs e)
{
SiteSettings settings = CSContext.Current.SiteSettings;
CommunityServer.Controls.Head.AddTitle(settings.SiteName + " : Sean Winstead",
HttpContext.Current);
}
</script>
This code grabs the site's name and suffixes it with a literal string (i.e., my name). The Head's AddTitle method stores the string in the Community Server context object and the Head control is smart enough to grab the string.
Also note that this change affects only the default.aspx page. It does not change the page title on a global basis for blogs, files, or photo gallery.
--
Sean Winstead
Tags: CommunityServer