Thursday 20 December 2012

Adding users photo to welcome text in Sharepoint 2010



Below are the steps for adding users photo before welcome text

STEP 1: Add the following Register tag at the top of the master page (before the doctype element)


<%@ Register Tagprefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>


STEP 2: Search for"s4-trc-container-menu" and add the following control (before welcome control)


<SPSWC:ProfilePropertyImage PropertyName="PictureUrl" style="float: left; height: 30px;" ShowPlaceholder="true" id="PictureUrlImage" runat="server"/>



Its done.... :)

No comments:

Post a Comment