Reusing SharePoint Web Parts – Exporting and Adding to Site Gallery
Most experienced BrightWork users will probably have configured BrightWork Reporter, the cross-site and cross-list reporting web part that comes with BrightWork. Every instance of a report is driven by an XML file that we call a Reporter Definition. You add the Reporter web part, select the Reporter Definition, report type and then configure the report accordingly. Most web parts do not require a lot of setup. You just add it to the page and away it goes showing you the contents of a particular list. However, web parts with a large number of configuration options, such as BrightWork Reporter, have an almost infinite number of final possibilities.
Getting the report configuration right can take a while! Once you get it right, repeating this work can be a pain. Fortunately, SharePoint allows you to export the web part and upload it to the site collection Web Part Gallery for easy reuse.
- Click Exporton the web part menu and save the web part to your desktop (it will save as a .dwp file).
- Navigate to the site collection home page and click Site Actions | Site Settings.
- Click Web parts.
- Click Documents | Upload Document.
- Navigate to the location where you have the .dwp file stored, select it and click OK.
- Make any appropriate changes and click Save.
Note: We recommend that you add your web parts to a custom group (e.g. My Web Parts, as shown above) to make them easier to identify when adding them.This web part will now be available to add (with all the configuration and setup done) to any web part page in the site collection.