Wednesday, 7 November 2012

Custom page title on SharePoint pages

In your pagelayout locate the content place holder called "PlaceHolderPageTitle".


<asp:Content ContentPlaceholderID="PlaceHolderPageTitle" runat="server">
</asp:Content>

Type your page title inside it

<asp:Content ContentPlaceholderID="PlaceHolderPageTitle" runat="server">
Contoso | <SharePointWebControls:FieldValue id="PageTitle" FieldName="Title" runat="server"/>
</asp:Content>


In this example the page title will be "Contoso | xyz" where xyz is what you have entered in the title field when you are in edit mode of the page.


See also:
Set or Change SharePoint Page Titles (“PlaceHolderPageTitle”)
Change Title Tag on SharePoint Sites

No comments:

Post a Comment