Microsoft Office Tutorials and References
In Depth Information
Congratulations, you have configured a built-in Content Editor web part. Now that we’ve
created something that looks practically seamless on the wiki page, let’s see what it looks like on
other pages.
It’s time to export this reminder so it will be available elsewhere.
Exporting a Web Part
Now that you’ve gotten a feel for what it takes to customize a web part, you can understand why
you might want to export a copy. Doing so backs up the web part and makes it possible to use
it elsewhere. To avoid creating it again from scratch, you can export it and then import it to the
page where you want to display it. Thus, the Export field under Advanced in the tool pane
carries a little more weight.
When you use a built-in template to create a web part, it is unique to the page upon which it
was created. To reuse that web part, you would have to package it as a web part definition file
(.dwp), which happens when you export it and then import it to the page where you want to put
it or, if you want to make it more widely available, to the whole site collection.
AN EXTENSION BY ANY OTHER NAME...
In the old days, .dwp used to also stand for “Dashboard web part.” So if you see it called that, don’t
be sur pr ised. Like many things from Microsof t, over the years, the name of this extension has shif ted
from its original meaning to something else.
I am going to show you how to export a web part and how to import it to a different page.
The first step is to access the web part you’re going to export (and make sure it exports the
correct data) and then export it. After the export, we can then import it anywhere.
When you create a web part that can be exported (web parts that are specific to the site itself,
like the list or library web parts, cannot be exported), you should give it a unique name. If there
are any external components to its contents, such as an address to a file or folder, that location
must be accessible to all users who see the web part, particularly those using the site where the
web part will be imported.
To export a web part, you usually don’t have to be in edit mode (although you can be). If the
web part has a title bar and you are allowed to export it, Export will be an option on the title bar
drop-down menu. See Figure 5.28 for an example of the Relevant Documents web part’s
dropdown menu.
FIGURE 5.28
The Relevant
Documents web part
drop-down menu
displaying the
Export options
However, for this example, the chrome type for the Vacation Requests web part was set to
show no title bar. That means it has no drop-down arrow to do anything to it while simply
browsing the page. This is a good deterrent to users who might not mess with a web part
without a title bar, but don’t let it stop you from exporting it.
 
Search JabSto ::




Custom Search