Web Part Basics in SharePoint 2013 – Part 1


Welcome to this first video on web part basics in SharePoint 2013. Web parts are containers that draw content from lists and libraries and display that content on web pages. Web parts can also add functionality to a web page, such as creating a set of tabs for an efficient user interface. There are many web parts available within SharePoint and they vary widely in purpose and configuration. So, this video serves as a general introduction to adding, editing and moving web parts. In this video, we’ll use the Image Viewer web part as an example. First, let’s add the web part to a page. Open the page for editing by clicking the Settings gear and Edit page. Then, click OK to check out the page. We want to place an image at the top of the page, so click the Add a Web Part link in the Header zone. In the web part gallery, click the Media and Content category, then the Image Viewer web part. The Header zone appears in the Add part to drop-down as the web part destination. Click Add to insert the web part. Here’s the web part in the Header, so let’s save the page. When you add a web part to a page, you are adding a copy of the web part. The original web part remains in the web part gallery. You can insert several copies of
the same web part on the same page, and you can insert different web parts on the same page. Here’s another way to add a web part. This time, open the page for editing by clicking the PAGE tab and Edit. The page is automatically checked out. Click the INSERT tab and Web Part. Choose the Media and Content category again, then the Image Viewer web part. This time, we didn’t select the zone for the web part, so click Header from the Add part to drop-down. Click Add to add a second Image Viewer web part to the page. Since we don’t need that, I’m going to Cancel. Now that the web part is on the page, we need to tell it what image to display. First, let’s make sure the image is in the Images library and get its web address. Go to the Settings gear and Site contents. You’re prompted to save changes. Although we haven’t made any changes since our last save, go ahead and click OK. On the Site Content page, scroll to and click the Images library. Hover over the SharePoint image, click the ellipsis, and copy the URL. Let’s go back to the page and open it for editing. Click PAGE and Edit. Open the web part for editing. Hover over the title of the web part, click the down arrow, and click Edit Web Part. The tool pane appears in the right part of the screen. You may need to scroll right and up to see it. Options in the tool pane let you customize the web part. Paste the image’s URL into the Image Link text box so the web part knows where to find the image. Click Test Link to make sure the address is correct. Add SharePoint Overview as Alternative Text. In some browsers, alternative text appears when the user hovers over the image. It’s also useful for the visually impaired. The alignment and color options don’t need to be changed. Expand the Appearance section and change the Title to Example of Image Viewer. Change the Chrome Type to Title and Border, then click OK. Here’s the image in the web part. This is the title of the web part and this is the border around the web part. Let’s save and check in the page so others can see the new image. Click the PAGE tab and Save. Then, use the link in the yellow bar to check in the page. In the comments, note that we Added a SharePoint image, and click Continue. Let’s review more of the Appearance options, since they apply to most web parts. I’ve already opened the page for editing. Edit the Image Viewer web part and expand the Appearance section. You can define a height and width for the web part, but it’s usually best to let the web part adjust automatically to fit the web part zone. A Chrome State of normal displays content as we’ve already seen with our image. A Minimized Chrome State hides the content of the web part. Let’s Apply the change and you’ll see that the image is hidden. Go back to the tool pane and look at the Appearance section again. Chrome Type controls whether the title and border of the web part are displayed. Earlier, we used Title and Border for the Image Viewer web part. The other options let you show only the title, show only the border, or hide both title and border. Default generally shows the title and border, but this may vary by web part. Let’s change to Border Only so the title will not appear and OK the change. When you save the page, the web part is completely hidden because the Chrome State is minimized and the Chrome Type doesn’t include a title. Let’s edit the page and web part and restore the Chrome State to Normal and Chrome Type to Title and Border so the web part is ready for our next example. If you need to rearrange web parts on a page, you can drag and drop the web part or you can use the Layout options. Let’s drag the Daily Reports web part so it is above the image. Hover over the title and pause until the pointer changes to a four-way arrow. Hold the mouse button down and drag
the web part to its new location. If you have trouble getting drag and drop to work, use the Layout options in the tool pane. The Zone option moves the web part from one zone to another. Open the Image Viewer web part and, in the tool pane, expand the Layout section. Our web part is currently in the Header. Select Top Left from the Zone drop-down and click OK. The web part is immediately moved from the Header to the Top Left. To rearrange web parts within a zone, use the Zone Index. Web parts with lower index numbers appear above web parts with higher numbers. If we want to move All Announcements above Daily Reports, we need to know the zone index number for Daily Reports. So, open the Daily Reports web part and expand the Layout section to see that its index number is 1. Now, edit the All Announcements web part and change its index value to a number less than 1, such as 0. Click OK and the web parts switch places. In this video, we’ve examined how to add,
edit and move web parts. There are companion videos that describe how to hide, delete and close web parts, as well as use specific web parts, so take a look at them once you’re
comfortable with this material. We encourage you to check out our other SharePoint videos, as well as the reference and training materials on the SharePoint Help site. On Connect NCDOT, there is a link to Help on every page. Go to the main Help page, and click SharePoint Help to see the SharePoint help information. On Inside NCDOT, there is a link to the help site in the header and footer of every page. Those links also take you to the SharePoint help site. For information on upcoming SharePoint classes, log in to BEACON and check the LMS Training Calendar. Or contact the PC Training group. Thanks for watching!

3 thoughts on “Web Part Basics in SharePoint 2013 – Part 1

  1. Fantastic explanation. Why can't all videos be as clear and concise as this? Thank you for putting this together.

Leave a Reply

Your email address will not be published. Required fields are marked *