Supercharge your SharePoint pages and news with these 10 popular web parts

SharePoint is the leading digital workplace platform that lets you create, manage, and share content with your team and your audience (among many other abilities). One of the best features for everyday users when creating content in SharePoint is the ability to easily add web parts to your pages and news. Web parts are like building blocks that let you add different features and functions in a single context alongside other building blocks – for example, Documents next to instructional text or policy reminders for using the library.

But how do you choose the right web parts for your pages and news? Well, it depends on what you want to do and who you want to reach. You should pick web parts that help you achieve your goals and communicate your message clearly and effectively. You should also keep your page design simple and neat, using only the web parts that you really need.

The add web part dialog | Click to enlarge

Here are some of the best web parts to use when creating SharePoint pages and news:

Web PartWhat it does

Highlighted content
Shows content that matches certain criteria or attributes, such as content type, location, custom metdata, or search term. I like this web part a lot because it gives me plenty of flexibility and helps me surface the right content when I need it.

News
Displays the latest news on your SharePoint page, and can include news from multiple sites as well.

Hero
Shows up to five items with images, text, and links to make them stand out. You can use it to add some flair and visual interest to your SharePoint page.

Events
Creates and shows events on your page. You can use it to share important dates, deadlines, meetings, or celebrations with your audience.

Quick links
Adds links to your page for easy access. You can use it to direct your audience to other pages, sites, or external resources that are relevant to your content.

People
Shows information about people on your page. You can use it to introduce your team members, collaborators, or contacts to your audience. You can also display their profile pictures, names, roles, and contact information.

Document library
Shows documents on your page. You can use it to upload or link to files that you want to share with your audience. You can set it to only show a specific view of a library to manage your space better (perhaps a view with minimal columns shown).

List
Displays a list from your site. This surfaces a view of a particular list as a web part. Consider using views that filter a person field to [Me] (the signed in user). This is a great way to personalize pages (your requests, your tasks, etc.) and surface relevant information alongside related resources (countdowns, calendars, files, policies, etc.).

File viewer
Shows files on your page. You can use it to display files such as videos, images, PDFs, or Microsoft 365 app files like Word, Excel, or PowerPoint files. You can also adjust the size and position of the file viewer on the page.

Embed
Shows content from other sites that allow embedding. You can use it to add content from sites like YouTube, Twitter, or Spotify to your page. You can also customize the appearance and behavior of the embedded content on the page.
Table of 10 SharePoint Online web parts to consider for your pages and news

These are just some of the many web parts that you can use in SharePoint. Want a fuller list? Check out my other post: SharePoint team vs communication site web part options.

Each web part can be customized to suit your needs and preferences. Ready to start building better pages? Check out this video, Create pages in SharePoint Online sites, to see the process:

References

How to roll up content across SharePoint Online sites (Video)

You can roll up and display content from across multiple sites in SharePoint Online using the news, documents, and events web parts. This video will demonstrate that process.

This video is part of my FREE 30+ lesson self-paced online training course called Collaboration in Microsoft 365 (OneDrive, SharePoint, and Teams). Enroll today at https://www.NateTheTrainer.com for the full learning experience including lesson discussions, quizzes, exams, and a completion certificate.

You can also watch the entire course as a YouTube playlist as well (just without the course discussions, quizzes, exam, and certificate). Be sure to subscribe to support my channel and for easy access to future content.

Notes

The News, Highlighted content, and Events web parts allow you to pull in content from sites other than your current site. So, for example, if you’re building a home page for your site and add a news web part, you can choose to pull in a partner department’s site’s news to your site as well to provide a variety of relevant content to your members. 

Additional resources

Solution: Power BI report pages not showing up as options for SharePoint web part

If you’ve just copied your multi-page Power BI report’s URL and pasted into the properties of a Power BI web part on a SharePoint page, you may have noticed your pages aren’t appearing as options in the Page name dropdown.

Click to enlage

This is because the URL you copied from Power BI likely contained a specific page in the URL itself, ending in something like …/ReportSection1 (which is referring to a specific page already).

To fix this and have your pages show up as options in the dropdown, simply remove the ReportSection1 (or 2, 3, etc.) from the end of the URL in the Power BI report link box and try again.

To speed things along, I usually cut (Ctrl+X) the corrected URL, click outside the box to “reset” the web part, then paste (Ctrl+V) the corrected URL and wait for my page names to appear. This is demonstrated below.

Click to enlarge

Here’s a related video demonstrating how to embed a Power BI report on a SharePoint page including fixing the multi-page issue mentioned above.

SharePoint team vs communication site web part options

Depending on whether your SharePoint site is built on a team site template (has a left-hand navigation menu) or a communication site template (no left-hand navigation menu) you will have different options available for web parts to be used on your site’s pages.

Part of this may be because communication sites are not built on Microsoft 365 groups which are required for creating assets like Planner plans. The Planner web part requires its hosting site to share a supporting Microsoft 365 group. You’ll also notice a much more limited selection of third-party (non-Microsoft) web parts available in communication sites.

Note
Even though communication sites aren’t built on Microsoft 365 groups, you can use pre-existing Microsoft 365 groups to grant access/membership to your communication site.

These web parts help remind us of the purpose behind each template. Team sites are meant to be used for collaboration – therefore we see much more collaborative tools available in this template. Communication sites, however, tend to be more consumer-oriented and don’t typically need the third-party apps or collaborative tools to share their documents, news, knowledge, etc. with consumers.

Team sites have the most web part options, including many third-party options. The following web parts are unique to team sites:

  • Asana
  • Bitbucket (and Bitbucket Server)
  • GitHub (and GitHub Enterprise)
  • Google Analytics
  • Incoming Webhook
  • JIRA
  • Office 365 Connectors
  • Planner
  • RSS
  • Salesforce
  • Stack Overflow
  • Trello
  • UserVoice
Web parts available in a team site | Click to enlarge

There are currently no web parts in communication sites that are not also available in team sites.

In the following table, you’ll find all of the default available web parts, their descriptions, and which template(s) they’re each available within.

Web partDescriptionTeamCommunication
AsanaTrack projects from start to finishX
Bing MapsDisplay a location on a map using Bing MapsXX
BitbucketManage and collaborate on your code projectsX
Bitbucket ServerManage and collaborate on your code projectsX
ButtonAdd a clickable button with a custom label and linkXX
Call to actionAdd call to action text and an image paired with a clickable buttonXX
Code SnippetAdd a Code Snippet to the pageXX
ConversationsShow conversations from a Yammer group, user, topic, or homeXX
Countdown TimerCount down or count up to an important eventXX
DividerAdd a line to divide areas on your pageXX
Document libraryShow a document library from this siteXX
EventsDisplay upcoming events from your sites in a layout you chooseXX
GitHubManage and collaborate on code projectsX
GitHub EnterpriseManage and collaborate on code projects hosted on a GitHub Enterprise instanceX
Google AnalyticsGet Google Analytics summary reportsX
Group calendarDisplay a calendar from one of your Office 365 groupsXX
HeroProminently display up to 5 pieces of content with links, images, pictures, or photos in a highly visual layoutXX
HighlightsShow highlights of Yammer conversationsXX
Image galleryShow several images, pictures or photos in a gallery layoutXX
Incoming WebhookSend data from a service to your Microsoft 365 Group in real timeX
JIRAGather, organize, and assign issues detected in your softwareX
Kindle Instant PreviewShow a preview of a Kindle bookXX
ListDisplay a list from this siteXX
List propertiesConnect to a list web part on the same page and dynamically display a selection from that listXX
MarkdownUse Markdown language to add and format textXX
Microsoft FormsAdd a survey to collect responses or show resultsXX
Microsoft PowerApps (Preview)Show a custom app created with PowerAppsXX
My feedDisplay a personalized feed of content and activitiesXX
NewsShow news posts from one or more sites in a variety of layouts. You can filter news and target news to key audiencesXX
Office 365 ConnectorsConnect with other services to show updates and notifications from themX
Organization chartShow an organization chart (org chart) with structure and connections for a selected personXX
Page propertiesShow details about your page like date, content type, or custom propertiesXX
PeopleDisplay selected people and their profilesXX
PlannerShow and work with a Planner board or chartsX
Power BIDisplay a Power BI reportXX
Quick chartShow data in a simple bar or pie chartXX
Quick linksShow a collection of links in a variety of layouts with options for icons, images, and audience targetingXX
Recent documentsDisplay recent documents for the current userXX
RSSGet RSS feeds for your groupX
SalesforceBuild relationships with your customersX
Saved for laterShow the current page viewer’s documents and pages that they saved for laterXX
Site activityShow site activity such as files uploaded or edited, lists created, and moreXX
SitesShow important or interesting sites on your pageXX
SpacerAdd vertical space between areas on the pageXX
Stack OverflowAsk and answer programming questionsX
StreamDisplay a Stream video or channelXX
TrelloManage Trello cards and tasks all in one placeX
TwitterDisplay a Twitter feedXX
UserVoiceCollect new customer ideas, and track and respond to customers’ problemsX
WeatherShow the current weather in a location you chooseXX
World clockShow one or more clocks with time zones you chooseXX
YouTubeShow a YouTube video on the pageXX
A table detailing available web parts and in which site template you can find them for use.

How to enable and use audience targeting for SharePoint pages and news

anonymous person with binoculars looking through stacked books

Note: This article pertains specifically to SharePoint Online (M365).

Audience targeting can be used to surface relevant information and resources to specific groups of people throughout SharePoint. This post will focus specifically on enabling audience targeting on your site’s pages and news so that you can create individualized experiences for users based on their identity or role.

The overall process consists of three steps:

  1. Enable the audience targeting ability for all content in your Site Pages library.
  2. Specify the appropriate audience(s) for specific pages/news items within the library.
  3. Modify any existing web parts (news or highlighted content web parts) to enable audience targeting (simply meaning to utilize any audience targeting configurations that have been specified for the content surfacing in that web part).

Step 3 is not required if you only wish to have audience targeting “seen” on the SharePoint start page, mobile app, or other non-customized areas where news may surface.

How audience targeting works

If you specify an audience for content, it will be shown in relevant areas (SharePoint start page, mobile app, news or highlighted content web parts using audience targeting, etc.) to members of the audiences only. This is not a security feature – the content is still discoverable by other users – just not surfaced upfront conveniently for them.

If you are a member of an audience specified on a news piece, you’ll see that news wherever it’s being called up. If you’re not, you won’t see it but can still search or browse to find it.

If no audience is specified for an item, it will be shown to all users. Or if a web part (such as a news web part) has disabled audience targeting, any specified audiences on individual pieces will be disregarded and the content will be shown to all through that particular web part.

Here are the detailed steps to set up audience targeting:

Enable audience targeting for Site Pages (and news)

1. Go to your Site Contents > Site Pages library

2. Select the settings gear > Library settings

Click to enlarge

3. Choose Audience targeting settings

Click to enlarge

4. Check the box for Enable audience targeting and then click OK.

Click to enlarge

Specify an audience for SharePoint pages or news

1. Now return to your Site Pages library and select a page or news item to which you wish to add audience targeting.

Click to enlarge

2. Open the details pane (i icon) in the upper right

Click to enlarge

3. In the Properties section, enter up to 50 M365 Group names, user names or emails, etc. to whom the selected content should be targeted. Notice it also adds the specified audience in a column in the library. Your additions are saved automatically.

Click to enlarge

Modify web parts to utilize audience targeting where available

1. Edit the page on which you’ve placed a news or highlighted content web part.

2. Click the edit icon (pencil) on the particular web part for which you’re enabling audience targeting.

Click to enlarge

3. In the Filters section, toggle Enable audience targeting on.
(Note: News source must be This site or Select sites. Recommended for current user doesn’t have audience targeting settings).

Click to enlarge

4. Republish your page when ready.

This can take some time to fully update in your site, so check back after a while to confirm functionality.

After completing these three sections, you’ve now

  • allowed content within the pages/news library to be used in audience targeting scenarios,
  • chosen specific pieces to which you’ll apply audience targeting,
  • and modified the web parts where content will surface to utilize those pieces’ audience settings when appropriate.

Check out this article for more information on SharePoint audience targeting, including more than pages and news.

Content and script editor web parts missing in SharePoint

Missing two of your favorite web parts? Don’t fret.

Make sure the site collection feature “SharePoint Server Publishing Infrastructure” is activated

Make sure the site feature “SharePoint Server Publishing” is activated

Still not there? Check “Settings” in the admin center to see if custom scripts are allowed on personal and self-service created sites (allow both). This can take up to 24 hours to take effect.

If you can’t wait (and you’re using SharePoint Online), use PowerShell to make the change immediately, changing my site details to your own

$adminUPN="nate@sharepointlibrarian.com"
$orgName="sharepointlibrarian"
$UserCredential = Get-Credential -UserName $adminUPN -Message "Enter password"
Connect-SPOService -URL https://sharepointlibrarian-admin.sharepoint.com -Credential $userCredential
Set-SPOsite https://sharepointlibrarian.sharepoint.com -DenyAddAndCustomizePages 0

Repeat the last line for each site on which you need to quickly activate this setting. For example, I would run it again on https://sharepointlibrarian1.sharepoint.com/sites/AnotherSite

Your web parts should have now returned! Good luck.

SharePoint’s Content Query Web Part (CQWP) is missing!

Applies to: SharePoint Server/on-prem

I love SharePoint’s Content Query Web Part (CQWP) – but if you’re missing a feature in your site collection(s), you may not have it! Luckily you can get it back in just four clicks.

  • Go to Site Settings
  • Click “Site Collection Features” under “Site Collection Administration” (Note: Must have full control or site collection administrator permissions to see this option)
  • Activate “SharePoint Server Publishing Infrastructure
  • Now your CQWP should be available as a web part under Content Rollup.

If you need to activate the SharePoint Server Publishing Infrastructure across all site collections in a web app, I recommend checking out 
Salaudeen Rajack’s site, SharePointDiary.com, for instructions on doing this via PowerShell.

How to give SharePoint link lists a professional look out-of-the-box using the icon library

In the modern SharePoint experience, you can clean up ordinary link lists with very little effort, thanks to SharePoint’s icon library.

chrome_2018-10-23_15-30-53

Whether you need a Teams icon (teams), dog (fangbody), tooth (teeth) or football (football), you can search for icons and use those for adding visual cues and iconography to your sites. Here’s how you can implement this on your page(s):

Continue reading “How to give SharePoint link lists a professional look out-of-the-box using the icon library”

How to create a SharePoint modal pop-up message on page load

2018-05-15_07-55-34

This solution involves two files:

  • The aspx page that holds the content of the pop-up
  • The script that loads the aspx page in a modal dialog upon page load
  1. Save this .aspx page to your “Site Pages” directory.
    -OR-
    Copy and paste the following into a new .aspx page in your Site Pages or Pages (Settings wheel –> Site Contents –> Site Pages or Pages) directory:

    Wrap this block in style tags:
    [code]
    h1 {
    color: #ed7522;
    text-align: center;
    }
    h2 {
    color: #ed7522;
    text-align: center;
    }
    p {
    color: #1f2844;
    font-size: 1em;
    }
    input {
    font-family: “Segoe UI”;
    font-size: 1em;
    }
    [/code]
    Paste directly beneath (no additional tags):
    [code]

    [/code]

  2. Modify the content in the aspx page beneath the modal-content div and above the input tag to include your own images, formatting and message text.
  3. Save this javascript file to your Site Assets (Settings wheel –> Site Contents –> Site Assets) or scripts folder
    -OR-
    Copy and paste the following into a new javascript file in your Site Assets:

    Note: Wrap the following in script tags:
    [code] _spBodyOnLoadFunctionNames.push(‘showPopup’);
    function showPopup() {
    var options = {
    title: “Notice“,
    url: “https://sharepointlibrarian.sharepoint.com/SitePages/HomePopUp.aspx” };
    SP.UI.ModalDialog.showModalDialog(options);
    }
    [/code]
  4. Update the script to include the URL of your newly saved aspx page and a title for the pop-up window (optional).
  5. Add a content editor web part to the page on which you’d like the pop-up.
    1. Edit page
      editpage
    2. Add web part
      insert web part
    3. Edit web part
      editwebpart
    4. Paste URL to the javascript file in your Site Assets and click “OK”
      content editor pop up
    5. Save page/stop editing
      stopediting

That’s it! Your pop-up should now function upon page load. When/if you wish to “turn off” the pop-up without deleting the files (so you can reuse later easily) just add “//” before line 7 in the javascript file and save to “comment out” the function. This prevents the pop-up from loading. When you’re ready to use the pop-up again just remove the two slashes and save.
comment out

I recommend using SharePoint Designer to easily access and modify the ASPX page and/or javascript file.

A better way to display “today’s events” from multiple calendars in SharePoint on your intranet home page

today at LMH

Below on the left are two traditional, out-of-the-box solutions for showing Today’s events in SharePoint. Notice how both take up a lot of extra space repeating today’s date (which we don’t need to see at all in a web part called “Today’s Events”) or showing gray space where there are no events. Soak that in – prime real estate on your home page goes to non-existent events. These also may require overlays and other manual labor processes that need adjusted every time a calendar is added or removed.

But on the right is what you could have. It uses search instead and displays events from all calendars a user has access to in one place. It shows only the necessary information on the home page and links to full details. And with a little CSS included in this post, it can look polished and themed. Imagine all you could do with that saved space on your home page…

Also seen above: Adding local weather to your SharePoint intranet home page
and a “this week’s menu” button for your intranet

Continue reading “A better way to display “today’s events” from multiple calendars in SharePoint on your intranet home page”