Tom Clarkson

SharePoint, Startups and some other stuff

Improving Page Titles on a CKS EBE Blog

with 7 comments

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”>

   

   

   

   

   

   

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

   

                

   

Advertisement

Written by Tom Clarkson

October 27, 2007 at 7:45 pm

Posted in SharePoint

7 Responses

Subscribe to comments with RSS.

  1. 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

    Harmeet

    January 19, 2008 at 7:58 am

  2. 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.

    Tom Clarkson

    February 9, 2008 at 10:05 pm

  3. This is great! Thanks!

    Lindaci

    June 25, 2008 at 3:02 pm

  4. Great post!

    Michael Gannotti

    July 9, 2008 at 6:21 am

  5. A must have!
    It enhances a lot the way google & live.com finds and show your posts!

    Enrique

    September 22, 2008 at 3:07 am

  6. 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é

    René Hézser

    February 19, 2009 at 8:17 am

  7. Thanks a lot for this quick and easy solution!

    Steve Ruiz

    August 27, 2009 at 10:50 am


Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

Please log in to WordPress.com to post a comment to your blog.

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.