
226
❘
CHAPTER 8 MASTER PAGES
This JavaScript code overrides the functions in SharePoint that cause this ActiveX message. The Starter
master page included with this chapter already has this code applied to it. If your SharePoint project
requires the presence information, you should remove these lines from your custom master page.
Showing a Favicon
Favicons are the little shortcut icons that appear in most modern browsers next to bookmarks, as
well as in the address bar next to the site’s URL and on browser tabs. SharePoint 2010 makes it very
easy to add a favicon to custom master pages using the following code:
<SharePoint:SPShortcutIcon runat=”server” IconUrl=”/Style Library/Waffles/favicon.ico”/>
Using this line, the IconUrl should point to a valid favicon fi le located on the SharePoint site.
If you need help creating a favicon, a free Photoshop plug-in is available from Telegraphics
(
www.telegraphics.com.au/sw/), and many websites enable you to generate favicons, without
cost, directly from a web browser.
When testing favicons, particularly with Internet Explorer, a lot of caching can
get in the way of seeing actual results. If you are having trouble seeing a new
favicon and you are certain that the code and the image are set up correctly, it
may help to clear your browser cache, make a new bookmark, or even close and
reopen the browser.
Working with Web Parts
Web Parts certainly ...