2009/02/02

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

<?xml:namespace prefix = asp /><asp:content contentplaceholderid="PlaceHolderPageTitle" runat="server">Add Title here</asp:content>

</asp:Content >

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

<sharepoint:listproperty runat="server" property="Title">
< SharePoint:ListProperty Property="Title" runat="server"/> <sharepoint:listitemproperty runat="server" property="Title">
<sharepoint:projectproperty runat="server" property="Title">
<sharepoint:listformpagetitle runat="server">
<sharepoint:listitemproperty runat="server" property="Title">
<SharePoint:ListItemProperty Property="Title" runat="server"/>
<SharePoint:ProjectProperty Property="Title" runat="server"/>
<SharePoint:ListFormPageTitle runat="server"/>

<sharepoint:projectproperty runat="server" property="Title">

<sharepoint:listformpagetitle runat="server">


</sharepoint:listformpagetitle>
</sharepoint:projectproperty>
</sharepoint:listitemproperty>
</sharepoint:listformpagetitle>
</sharepoint:projectproperty>
</sharepoint:listitemproperty>
</sharepoint:listproperty>
<?xml:namespace prefix = sharepoint />
<sharepoint:listproperty runat="server" property="Title">
<sharepoint:listitemproperty runat="server" property="Title">
<sharepoint:projectproperty runat="server" property="Title">
<sharepoint:listformpagetitle runat="server">
<sharepoint:listitemproperty runat="server" property="Title">
<sharepoint:projectproperty runat="server" property="Title">
<sharepoint:listformpagetitle runat="server">
</sharepoint:listformpagetitle>
</sharepoint:projectproperty>
</sharepoint:listitemproperty>
</sharepoint:listformpagetitle>
</sharepoint:projectproperty>
</sharepoint:listitemproperty>
</sharepoint:listproperty>
<sharepoint:listproperty runat="server" property="Title">
<sharepoint:listitemproperty runat="server" property="Title">
<sharepoint:projectproperty runat="server" property="Title">
<sharepoint:listformpagetitle runat="server">
<sharepoint:listitemproperty runat="server" property="Title">
<sharepoint:projectproperty runat="server" property="Title">
<sharepoint:listformpagetitle runat="server">
</sharepoint:listformpagetitle></sharepoint:projectproperty></sharepoint:listitemproperty>
</sharepoint:listproperty><sharepoint:listproperty runat="server" property="Title">
<sharepoint:listitemproperty runat="server" property="Title">
<sharepoint:projectproperty runat="server" property="Title">
<sharepoint:listformpagetitle runat="server">
</sharepoint:listformpagetitle></sharepoint:projectproperty>
</sharepoint:listitemproperty>
</sharepoint:listproperty></sharepoint:listformpagetitle>
</sharepoint:projectproperty>
</sharepoint:listitemproperty>

No comments: