Hi,
I'm interested in building a SharePoint knowledge base using wiki pages, and I'm trying to figure out how I can embed one wiki page into another without also including the ribbon and side-menu. I have SharePoint Online, classic experience, through O365.
(Please redirect me if I'm asking this in the wrong place!)
Because of the nature of my organization's content, it makes a lot of sense to build pages containing standard procedures that can be embedded in a variety of other pages with content about larger processes. To try and illustrate what I mean, imagine a given
process article as though it were a molecule comprised of atoms, where the atoms are (mostly) just these standard procedures that have been embedded. You could have a set of 'atomic' standard procedure articles, and could create new process articles as different
arrangements of those existing 'atomic' articles.
An upshot of this would be the ability to update a given standard procedure in one place (the respective wiki page), with those changes automatically flowing through to all the process articles in which that standard procedure has been embedded.
Given the ability to embed web pages with the Page Viewer web part, I feel we have at least the beginnings of a technical solution for building the functionality I just described. But I lack the expertise to develop this functionality from here. Using just
the Page Viewer web part, we can embed a given wiki page into another wiki page, but the problem is that it's not just the content that gets embedded, but also the ribbon and the side-menu as well - basically like using an iframe.
If we were able to embed just the content from a given wiki page, and not include the ribbon and side-menu, then we'd be golden. Does anyone know if this is possible?
I was directed here from the Microsoft Community, where I asked this same question. There, I was told, "It is not achievable for build-in web part to embed a wiki page without the ribbon and the side-menu. And you may seek help from MSDN forum to see
if some code can help achieve this."
Thanks in advance!
解决方案Hi,
For wiki page, we can add the CSS style to the wiki pages to hide the ribbon, navigation, suite bar and etc.
#suiteBarDelta{
display:none !important;
}
#s4-ribbonrow{
display:none !important;
}
#s4-titlerow{
display:none !important;
}
#sideNavBox{
display:none !important;
}
If you want to iframe the list or library pages using Page Viewer web part, we can add "?isdlg=1" to the page url and add some JavaScript to hide the ribbon.
Best Regards,
Dennis