Thursday, July 5, 2007

Displaying Site Data in a SharePoint Page

To display the name of the current site in a master page or page layout within SharePoint, add the following control to the source of the page:

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

This display the title of the site. The ProjectProperty SharePoint Web Control is useful for displaying properties of the current web site. Other fields such as the site description can also be displayed this way

Note that Microsoft must have used the name "project" at some stage for a SharePoint site, given the name of this control and also the name of the site Title and Description settings page (which is prjseng.aspx)

No comments: