Microsoft Office Tutorials and References
In Depth Information
It turns out that the people who make web parts tend to use the same framework over and
over to build a number of different web parts. Rather than requiring us to rebuild that
framework from scratch each time, Microsoft made built-in web parts for SharePoint that are basically
templates of the basic framework for a lot of the types of web parts that might be used. These
include Page Viewer, Image Viewer, XML Viewer, Silverlight, Picture Library Slideshow, Content
Editor, and even the Form web part. These web parts are empty when you add them to the page;
you must configure them in order for them to work. All built-in web parts require you to specify
the source of the content, be it a file, folder, or URL (depending on the type of web part). The
Content Editor and XML Viewer web parts additionally allow you to create the content right
there. (Content Editor uses a rich content environment like the wiki page, and XML Viewer uses
a text editor accessible from the tool pane.)
For our purposes, we have a home page populated with a useful web part, a photo, and some
welcome text. That is a good start. But for this scenario, there is a vacation request notice that
requires the user’s attention as soon as they reach the site. It’s a good candidate for being added
to the home page.
This will give us an idea of how a built-in web part works, and it will demonstrate when it is
good to just add text and pictures to the home page and when it’s good to add text and pictures
to a Content Editor web part on the home page that can be exported and applied elsewhere (as
well as showing you how to apply it elsewhere).
I N S E R T I N G A B U I L T - I N W E B P A R T T E M P L A T E
Take the following steps to insert a built-in web part template:
1. To insert the Content Editor web part, make sure the home page is in edit mode, and then
pick a place to put the web part on the page, making sure there is an insertion point there
for the web part. In my case, I’d like it to go right above the “Welcome to your site!” title
at the top of the left zone. (You may need to click in front of the title and hit Enter so you
can put your insertion point above it, if you are following my example.)
2. Once you have an insertion point on the page, click the Insert tab on the top ribbon bar,
and then click the Web Parts button on the Insert ribbon.
3. Once the web part workspace is displayed, click the Media And Content category. This
will display the Content Editor web part in the Web Parts column so you can select it.
4. After selecting the Content Editor web part, click the Add button at the bottom of the
About The Web Part area.
There may be a pause while the web part loads, and then it should show up at the insertion
point. Figure 5.17 shows my new web part at the top of the right column.
You’ll notice that the web part has only a title bar and contains the sentence “Edit this Web
Part to add content to your page.” That is a good suggestion, so let’s start configuring this web
part and then add content.
Search JabSto ::




Custom Search