Chapter 11. Using Web Parts

In this section:

Microsoft SharePoint 2013 Web Parts are modular page components that can be used by page authors to add sophisticated, predefined functionality to webpages. For example, you can use Web Parts to add an image or paragraph to the Home page of your site to tell users more about your site. However, Web Parts are not limited to simple page content. If you add a Note Board Web Part to a page on your site, users can enter comments or view the comments made by other users. Using Web Parts, page authors can add incredible functionality to their pages without having to worry about complex web programming requirements.

Adding Web Parts to a wiki page

Web Parts can be added whenever you add a page on your SharePoint 2013 site; however, the process is slightly different based on whether you are editing a wiki page or a Web Part page. In both cases, you can determine where you want to insert the Web Part; however, you have a little more flexibility in terms of author layout (and less administrative control over structure) when using wiki pages. With wiki pages, users can layout content by using rich-text style tools, and they can insert items virtually anywhere within the text.

Add a Web Part to a wiki page

  1. From a wiki page on a SharePoint site, on the ribbon, click the Page tab.

  2. In the Edit group, click the Edit button.

    image with no caption

    Try This

    Try adding the Note Board Web Part to the Home page of your site to enable user commenting and collaboration.

  3. Find a place in the text on the page and click to place your cursor where you want to insert the Web Part.

  4. On the ribbon, click the Insert tab.

  5. In the Parts group, click the Web Part button.

    image with no caption
  6. In the Add A Web Part window that appears, in the Category section, select a category by which to filter the list of Web Parts.

  7. In the Parts section, select a Web Part.

  8. Click Add.

    The Web Part is added to the page at the point where you placed your cursor.

    image with no caption
  9. Click Save to save your page.

    image with no caption

Adding Web Parts to a Web Part page

With SharePoint 2013 Web Part pages, Web Parts can be placed only in specific zones on the page, which makes them useful for scenarios in which administrators need to maintain a tighter control over the look and feel of a site. Users click the Add A Web Part link within available Web Part zones to specify generally where the control should be rendered.

Add a Web Part to a Web Part page

  1. On the page that you want to modify, on the ribbon, click the Page tab.

  2. In the Edit group, click the Edit Page button.

    image with no caption
  3. On the page, find an available Web Part zone and click the Add A Web Part link.

    image with no caption
  4. In the Add A Web Part window that appears, in the Category section, select a category by which to filter the list of Web Parts.

  5. In the Parts section, select a Web Part.

  6. Click the Add button.

    image with no caption
  7. On the ribbon, click the Page tab.

  8. Click Stop Editing to save your results.

    image with no caption

Adding an App Part to a page

With the focus on Apps in SharePoint 2013, each new document library or list is created as a separate application within the site. As a result, if you want to expose a view into a list or document library on the Home page (or any other page) of your site, you will need to make use of the new App Part to show this data.

Add a list to a page

  1. On the ribbon tab, click the Page tab.

  2. In the Edit group, click the Edit button.

    image with no caption
  3. Find an insert point on the page and click to place your cursor at this location.

  4. On the ribbon, click the Insert tab.

  5. In the Parts group, click the App Part button.

    image with no caption

    Tip

    On Web Part pages, you will need to instead click the Add A Web Part links located on the page rather than selecting an insert point and using the Insert App Part link.

    Caution

    On Publishing pages, you will need to check-in and publish your page before any changes are displayed to other site users.

  6. In the Parts section of the Add An App Part window that appears, click the name of the App Part that matches the list that you want to add.

  7. Click the Add button.

    image with no caption
  8. Click the Save icon to save your page changes.

    image with no caption

Editing Web Part properties

Many settings on a Web Part can be modified by the page author after the Web Part has been placed on the page. For example, the author can select how the Web Part is framed on the page and how much space is allocated for display of the Web Part. Some Web Parts, such as the Image Viewer Web Part, require that the user specify additional information such as the location of the image to be displayed.

SharePoint provides a standardized tool panel that you can access for viewing and editing the properties for each Web Part. It includes some common properties shared by all Web Parts, such as the Appearance pane, with which you can provide a display title for the Web Part and define its display size in pixels. Additionally, some Web Parts have additional custom fields that you can use to tailor the behavior of the Web Part.

Edit Web Part properties

  1. On a page containing a Web Part that you want to configure, on the ribbon, click the Page tab.

  2. In the Edit group, click the Edit icon.

    image with no caption
  3. Locate the Web Part that you want to configure and then, in the upper-right corner, click the Options drop-down arrow.

  4. On the menu that appears, click Edit Web Part.

    image with no caption
  5. In the Web Part properties dialog box, enter or change any of the visible properties.

  6. Expand other sections in the dialog box by clicking the corresponding Expand buttons (the plus signs) next to the section headings.

  7. Click OK to save your settings.

    image with no caption

Working with personalized Web Parts on pages

Users can also personalize SharePoint 2013 pages, which is particularly powerful when combined with predefined Web Parts. If personalization is enabled on a site, you can add your own Web Parts to a page that are only visible to your account. Thus, users can quickly add items such as links, task reminders, and RSS feeds to their Home page on a site.

After you have personalized a page by adding your own Web Parts, you can switch between your personal view and the view shared by all users by using a few simple menu commands.

Add a Web Part to a personalized page

  1. On a Web Part page, in the upper-right corner of the SharePoint window, click your user name.

  2. On the menu that appears, click Personalize This Page.

    image with no caption
  3. Find a Web Part zone on the page and click the Add A Web Part link.

    image with no caption

    Try This

    Try personalizing the Home page of a Blog or Project site, both of which support personalization on the Home Web Page page.

    Tip

    The personalize pages options are only available for Web Part pages (not wiki pages) and also require permissions to be set up by your administrator. If these options are not available, ask your IT staff about the configuration of the AddRemove Personal Web Parts option.

  4. In the Add A Web Part window that appears, in the Category section, select a category by which to filter the available Web Parts.

  5. In the Parts section, select a Web Part.

  6. Click Add.

  7. On the ribbon, click Stop Editing to save the personalized page.

    image with no caption

Switch from personal and shared views

  1. On a site on which you have already personalized the display, in the upper-right corner of the SharePoint window, click your user name.

  2. On the menu that appears, click Show Shared View to display the shared view of the page as viewed by all users.

    image with no caption
  3. Click your user name to open the menu again.

  4. On the menu, click Show Personal View to return to your personalized view of the page.

    image with no caption

Targeting Web Parts for an audience

Sometimes, you might not want all of the users of your site to see the same Web Parts. SharePoint provides an option called audience targeting by which you can specify that certain page components be displayed to selected users and groups. This option is accessed via the Web Part properties dialog box.

When choosing a target audience, you will need to choose from one of the following groups:

  • Global audiences. Global audiences are populated by audience rules that are set up by your administrator and can be based on organizational reporting relationships as well as other calculations.

  • Distribution/security groups. Distribution and security groups are based upon list memberships of the user profile service as well as windows security groups imported from the user profile service.

  • SharePoint groups. SharePoint groups are defined on the local site and can be administered by site collection administrators and other users who have been given permission.

Tip

On sites for which you don’t have full administrative privileges, the SharePoint Groups option would be the simplest to administer because you can specify that members of a local group have visibility to a Web Part.

Tip

You can add more than one group to the Target Audiences text box.

Target web parts for an audience

  1. On a page that you are editing, select a Web Part and then, in the upper-right corner, click the Options drop-down arrow.

  2. On the menu that appears, click Edit Web Part.

    image with no caption
  3. In the Web Part properties dialog box, expand the Advanced section (click the plus sign).

    image with no caption
  4. Scroll to the bottom of the Advanced section and click the Browse icon and click the Browse icon for the Target Audience field.

    image with no caption
  5. In the Select Audiences dialog box, choose a group type on which to query. Select from Global Audiences, Distribution/Security Groups, or SharePoint Groups.

  6. In the Search box, type a search expression to locate a matching group and then click the Search button (the magnifying-glass icon).

  7. Select the appropriate group.

  8. Click the Add button to add the group to the Target Audiences text box.

  9. Click OK to close the Select Audiences dialog box.

    image with no caption
  10. In the Web Part properties dialog box, click OK.

    image with no caption
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.36.194