13.07.2015 Views

Microsoft SharePoint. Building Office 2007 Solutions in VB 2005 ...

Microsoft SharePoint. Building Office 2007 Solutions in VB 2005 ...

Microsoft SharePoint. Building Office 2007 Solutions in VB 2005 ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

240CHAPTER 7 ■ SHAREPOINT CUSTOM FEATURES AND WORKFLOWSOf the available elements, you will make the most use of the ElementManifests element.The ElementManifests element conta<strong>in</strong>s any number of ElementManifest or ElementFile elementsthat always have a Location attribute po<strong>in</strong>t<strong>in</strong>g to a manifest file. This manifest fileconta<strong>in</strong>s <strong>in</strong>formation that lets you add new actions to <strong>SharePo<strong>in</strong>t</strong> menus, add new pages toa site, add new list types to a site, use custom controls, and receive list events. Because thecontent of the manifest file can vary greatly between features, I’ll show you examples of allof these customizations throughout the chapter. List<strong>in</strong>g 7-2 shows an example manifest filefor the data connection library feature.List<strong>in</strong>g 7-2. Def<strong>in</strong><strong>in</strong>g a Data Connection LibraryAdd<strong>in</strong>g Actions to Menus and ToolbarsCreat<strong>in</strong>g a feature that adds an item to a menu or a toolbar can be very simple. In fact, youcan create such a feature with no code and two simple XML files. As an example, I’ll createa feature that adds an item to the Site Actions menu that lets you access the Apress site <strong>in</strong>order to download the code for this book. I’ll call my new feature CodeDownload. Figure 7-1shows the activated feature on the Site Actions menu.Figure 7-1. Add<strong>in</strong>g an item to the Site Actions menu

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!