Tom Clarkson is a SharePoint consultant and entrepreneur based in Sydney, Australia.

Contact Details

Links



Recent Searches



Archives




Past Posts







RSS Feed

Improving Page Titles on a CKS EBE Blog

SharePoint 2007
Saturday October 27 2007

I've been making some more improvements to my blog, which is running on WSS with the Community Kit for SharePoint: Enhanced Blog Edition. All fairly simple stuff, but of course being SharePoint finding the simple changes to make can take some time.

   

Adding the post title to the browser title

You can change the page title from any page easily enough by providing content for the "Title" ContentPlaceHolder. The trick is finding something appropriate to put there. The approach I took was to create a new xsl stylesheet that displays only the title of a post. This I placed in the theme folder, named PostTitle.xsl

   

<xsl:stylesheet version="1.0"

xmlns:date="http://exslt.org/dates-and-times" xmlns:ebe="http://cks/ebemethods"

xmlns:string="http://exslt.org/strings"

xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="date ebe">

   

<xsl:param name="IsBlogOwner" />

<xsl:param name="RelativeUrl" />

   

<xsl:output omit-xml-declaration="yes" />

   

<xsl:template match="/">

<xsl:apply-templates select="rows/row"/>

</xsl:template>

   

<xsl:template match="row">

<xsl:value-of select="Title"/></xsl:template>

   

</xsl:stylesheet>

   

Then I just had to call it by adding some code to post.aspx:

   

<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">

<SharePoint:ProjectProperty Property="Title" runat="server"/> -

<EBE:Post runat="server" Transform-XslName="PostTitle.xsl"/>                

</asp:Content>

   

Comments

On 19 Jan 2008 12:58, Harmeet said:
I am facing same kind of issue where several of my pages shows 
SharePoint:ProjectProperty Title "runat=server" as the Title in the search result.
Is there a way to find which file might have been edited to change the title.
These pages looks to be web part pages but i am not able to reproduce it
On 09 Feb 2008 03:05, Tom Clarkson said:
Not quite the same issue, though I suspect that the problem is in the master page. May just be one character missing off the start of that tag.
On 25 Jun 2008 08:02, Lindaci said:
This is great! Thanks!
On 08 Jul 2008 11:21, Michael Gannotti said:
Great post! 
On 21 Sep 2008 08:07, Enrique said:
A must have!
It enhances a lot the way google & live.com finds and show your posts!
On 19 Feb 2009 01:17, René Hézser said:
Hi Tom,
Good idea! I've implemented this functionality in the latest sources. The next EBE version will have your idea by default.

Keep up the great work...
René
On 27 Aug 2009 03:50, Steve Ruiz said:
Thanks a lot for this quick and easy solution!
On 04 Sep 2009 05:10, Bill Bartmann said:
Excellent site, keep up the good work

Leave a comment