Sunday, December 28, 2008

Change SharePoint Page Title

Add the follwing content place holder in the top of your code if not exist

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

Add Title here

</asp:Content>

You can get title dynamic by add any of this tags into "PlaceHolderPageTitle"


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

<SharePoint:ListItemProperty Property="Title" runat="server"/>

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

<SharePoint:ListFormPageTitle runat="server"/>

2 comments:

  1. Is there any way to set this heading to a variable declared within a custom webpart?

    ReplyDelete
  2. This post helped me. Thank You !
    my custom pages didn't have any titles and I found that I should you ContentPlaceHolderPageTitle.

    ReplyDelete