Work with webpages

  • 2/3/2017

Use app parts and web parts

As you customize your site, you might decide to add information other than static text and images. This information might be stored in lists or libraries or in some other data source. You add such content by using app parts and web parts. You can insert both app parts and web parts on multiple pages, and you can also insert them multiple times on the same webpage.

SharePoint provides built-in app parts and web parts, as detailed in the following table. The category specified in the table is the category name that is displayed when you use the app parts pane. The availability of an app part or web part depends on the type of site you are working with.

Category

Description

Apps

This category contains app parts, which display app information. SharePoint apps are similar to the apps you might find on Facebook or on your smartphone. App parts can also be used to display the contents of list and library apps; each time data in the list or library app changes, the changes are reflected in the app part.

Blog

Use these web parts to help you display and manage blog posts.

Business Data

This category contains web parts related to Business Connectivity Services (BCS) and Microsoft Excel, Visio, and Access.

Community

These web parts are available on community sites. For more information about community sites, see Chapter 9, “Work with wikis, blogs, and community sites.”

Content Rollup

These web parts can be used to display content from the current site and from other sites. They include the Content Query, Content Search, and Project Summary web parts.

Document Sets

These web parts can be used to display the contents and properties of document sets. For more information about document sets, see Chapter 14, “Manage and monitor content.”

Filters

These web parts can be used to filter the contents displayed by other web parts on the page.

Forms

The web parts in this category can display content from HTML or Microsoft InfoPath forms.

Media and Content

Use these web parts to add content to the page. They include the Content Editor, Script Editor, Image Viewer, and Get Started With Your Site web parts.

Search

These web parts are used with the SharePoint search functionality and on the Search site to display search results and refinements.

Search-Driven Content

These web parts can be used to display the results of a search query.

Social Collaboration

Use these web parts to display socially related content, such as newsfeeds, contact details, and user tasks.

SQL Server Reporting

The web part in this category is used with Microsoft SQL Server Reporting Services.

Miscellaneous

Only one web part is listed in this category: the Case Content web part that is used in the eDiscovery Center.

All app parts and web parts have a set of common properties that you can use to control the part’s appearance and behavior, such as toolbar type, chrome type, the part’s height and width, and whether users can minimize it so that only the title is visible. You can configure the common properties by using either the web part tab or the Appearance, Layout, or Advanced section of the web part tool pane.

Each app part and web part can also have a set of custom properties. These properties might be displayed on a separate contextual tab, or they might be in the web part tool pane, in their own section, or in the Miscellaneous section. For example, if you insert an app part on your page that displays the contents of a list, when you select the check box next to the app part title (in edit mode), three tabs appear on the ribbon: Files, Library, and Web Part.

To activate a web part page for editing

  1. Go to the page you want to edit, and then on the Page tab, select Edit.

To add an app part to a content area

  1. On the page where you want to add an app part, activate edit mode and place the cursor where you want the app part to be displayed.

  2. On the Insert tab, in the Parts group, select App Part to open the app parts pane.

  3. Select the app you want to add to your page.

  4. 07fig33.jpg

    Click to view larger image

    The app parts pane shows an app part for each list or library on the site, in addition to app parts for apps you have installed

  5. Select Add.

To add a web part to a content area

  1. On the page where you want to add the web part, activate edit mode and place the cursor where you want the web part to be displayed.

  2. On the Insert tab, in the Parts group, select Web Part to open the web parts pane.

  3. Under Categories, select a category, and then under Parts, select the web part you want to add to your page.

  4. 07fig34.jpg

    Click to view larger image

    When a web part is selected, the About The Part section provides a description of the web part

  5. Select Add.

To add an app part or web part to a web part zone

  1. On the page where you want to add an app part or web part, activate edit mode, and then in the zone where you want to add the app part or web part, select Add a Web Part to open the web parts pane.

  2. Under Categories, select a category, and then under Parts, select the web part you want to add to your page.

  3. Select Add.

To display the Web Part tab and any other contextual tabs for a web part

  1. In edit mode, select the check box for the web part by selecting the title bar of the web part.

  2. 07fig35.jpg

    Click to view larger image

    Select the web part’s title or check box to display contextual tabs

To open the web part tool pane

  1. In edit mode, do one of the following:

    • Display the Web Part contextual tab, and then select Web Part Properties.

    • 07fig36.jpg

      Click to view larger image

      Use the Web Part tab to open the web part tool pane, create web part connections to related lists, and minimize, restore, or delete the web part

    • Point to the web part, select the arrow on the title bar of the app part or web part, and then select Edit Web Part.

    • 07fig37.jpg

      Click to view larger image

      Use the commands on the menu to minimize, close, or delete the web part or app part or to open the properties pane

To configure the content that a list or library app part displays

  1. Open the web part tool pane as described in the previous procedure.

  2. In the web part tool pane, immediately below List Views, do one of the following:

    • Select a view that was previously created from the list or library.

    • 07fig38.jpg

      Use the List Views section to select the view you want the app part to use and to select the app part toolbar

    • Select Edit the current view, and then, if a dialog box opens, select OK to save your changes. The Edit View page is displayed. Configure what you want the web part to display, and then select OK.

To move an app part or web part to another location on a page

  1. With the page activated for editing, point to the title bar of the app part or web part so that the pointer changes to a four-pointed arrow.

  2. Drag the web part to the new area on the page.

To remove an app part or web part from a page

  1. Do one of the following:

    • Display the Web Part tab, and then in the State group, select Delete.

    • On the web part’s title menu, select Delete.

  2. Select OK to confirm that you want to permanently delete the app part or web part.

To save modifications to a web part page

  1. On the web part page, on the Page tab, select Stop Editing.