When a new webpart page is added to a SharePoint document library the title of the page appears as Library Name – Page Name. For instance if the document library name is WebPages and the page name is Page1 the title would appear as WebPages – Page1. This is the title that would be displayed on the title bar of the browser, but more importantly this will be the text displayed by search engines.

In order to give a more meaningful title for the webpart pages we will have to open the page in SharePoint designer and replace the content of ContentPlaceHolder with the id PlaceHolderPageTitle. Below is the default content of PlaceHolderPageTitle

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

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

                <SharePoint:ListItemProperty Property="BaseName" MaxLength=40 runat="server"/>

</asp:Content>

You can give a meaningful title by replacing the content as something below

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

                MyWebsite ::: A meaningful title

</asp:Content>

A more neat approach would be to add a custom field to the document library and use that field information for title. For instance if we a add text field by the name of WebPageTitle to the document library we can use it as the title as shown below

 

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

<SharePoint:ListItemProperty Property="WebPageTitle" MaxLength=40 runat="server"/>

</asp:Content>

Cheers JJ