Sometimes the user wants to change the MySite Link text to something else like "My World". In that case, you can do that by making changes to the MySiteLink.ascx file. This MySiteLink.ascx file is located at
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES
Now, open that MySiteLink.ascx file in sharepoint designer and change the following line
< asp:HyperLink id="hlMySite" runat="server" / >
Add visible="false"
The above line will become < asp:HyperLink id="hlMySite" runat="server" visible="false" / >.
Now, finally to change the Mysite text add the following line with the text that you want to display. Here, i want to display "My World"
< asp:HyperLink ID="NewMySiteHyperlink" runat="server" Text="My World" Visible="true" NavigateUrl="http://your mysite Url/_layouts/MySite.aspx"/ >
To display image in place of MySite Text you can use the following line
< asp:HyperLink ID="NewMySiteHyperlink" runat="server" ImageUrl="/_LAYOUTS/ Link to your image file" Text="My World" Visible="true" NavigateUrl="http:// Your MySite Url/_layouts/MySite.aspx"/ >
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES
Now, open that MySiteLink.ascx file in sharepoint designer and change the following line
< asp:HyperLink id="hlMySite" runat="server" / >
Add visible="false"
The above line will become < asp:HyperLink id="hlMySite" runat="server" visible="false" / >.
Now, finally to change the Mysite text add the following line with the text that you want to display. Here, i want to display "My World"
< asp:HyperLink ID="NewMySiteHyperlink" runat="server" Text="My World" Visible="true" NavigateUrl="http://your mysite Url/_layouts/MySite.aspx"/ >
To display image in place of MySite Text you can use the following line
< asp:HyperLink ID="NewMySiteHyperlink" runat="server" ImageUrl="/_LAYOUTS/ Link to your image file" Text="My World" Visible="true" NavigateUrl="http:// Your MySite Url/_layouts/MySite.aspx"/ >
No comments:
Post a Comment