Here we will discuss Page Viewer Web Part SharePoint. The page viewer web part is the same for SharePoint online, SharePoint 2013, SharePoint 2016, or SharePoint 2010.
SharePoint Page Viewer Web Part is an out of box web part provided by Microsoft. By using this web part you can show a web page, file, or folder on a SharePoint Page. But you can use the page viewer web part only in a browser that supports the HTML IFRAME element.
And you can display a file or a folder in Internet Explorer. The Page Viewer Web Part displays content asynchronously from the rest of the page.
To add page viewer web part in a page, Open the SharePoint site and then Edit the page and then click on Add a Web Part. Then from the Web Part categories Select Media and Content.
From the Media and Content Web Part categories select Page Viewer web part. Then click on Add.
Once you will add the web part now you can configure the web part by clicking on the open the tool pane link on the web part. Once you will click on open the tool pane link, the Page Viewer properties dialog will open.
From the first section, you can choose from a radio button list what you want to display like Web Page, Folder, or File. Suppose you will select the Web Page then in the Textbox put the URL of the webpage as shown in the figure below.
Now the Web Page will appear inside the Page Viewer web part. You can also set all the other properties for the web part like here I have changed for width and height. The page looks like below:
Let us see, how to solve Only secure content is displayed error in SharePoint. The error comes while using Page viewer web part in SharePoint Online or SharePoint 2013/2016.
Recently I was using page viewer web part in SharePoint Online site. I was displaying a URL inside the page viewer web part in a web part page. But in IE it was showing error as:
Only secure content is displayed. And once I click on Show all content. Then only it will show the content from the page viewer web part.
Here below are two ways I resolved the issue “Only secure content is displayed”.
Inside my SharePoint Online page viewer web part, I was trying to show https://www.enjoysharepoint.com URL.
Since SharePoint Online site is an https site and this one is an HTTP site. It was showing that warning message. The page viewer web part URL was like below:
When I change the URL to an “https” URL. It started showing the page without the warning message.
The other option is we can disable the warning message in the browser itself. Open Internet Explorer -> On the Tool menu, click Internet Options -> Click the Security tab and then click Custom level -> In the Settings box, scroll down to the Miscellaneous section, and under Display mixed content choose Enable.
It looks like below:
This is how to solve Only secure content is displayed error which comes in SharePoint Online page viewer web part.
You may like the following SharePoint tutorials:
- Create a Leave Request Approval Workflow using SharePoint Designer 2013
- RSS Viewer Web Part in SharePoint
- Site Feed web part in SharePoint 2013/2016/Online
- Web parts maintenance page: if you have permission, you can use this page to temporarily close web parts or remove personal settings
- The current page has been customized from its template. Revert to template SharePoint
- Create site page in SharePoint online
- Redirect to a different page after adding new list items in SharePoint
- How to remove SharePoint Online Modern Page Title using PowerShell
- SharePoint Online redirect to another page programmatically
This SharePoint tutorial explains, how to use page viewer web part in SharePoint Online or SharePoint 2013/2016.
I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SPGuides.com