在O365 SharePoint中嵌入Wiki页面 [英] Embedding Wiki Pages in O365 SharePoint

查看:110
本文介绍了在O365 SharePoint中嵌入Wiki页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对使用Wiki页面构建SharePoint知识库感兴趣,并且我试图弄清楚如何可以将一个Wiki页面嵌入到另一个Wiki页面而又不包括功能区和侧面菜单.我拥有SharePoint Online ,通过O365获得经典体验. (如果我在错误的位置提出这个问题,请重定向我!)

由于组织内容的性质,构建包含标准过程的页面非常有意义,这些标准过程可以嵌入到其他有关较大过程的页面中.为了尝试说明我的意思,请想象一个给定的 就像是一个由原子组成的分子组成的过程文章,其中原子(大部分)只是这些已嵌入的标准程序.您可能会有一组原子"标准过程文章,并且可以创建与其他不同的新过程文章 现有的原子"文章的排列方式.

这样的结果是可以在一个地方(相应的Wiki页面)更新给定的标准过程,而这些更改将自动流到已嵌入该标准过程的所有过程文章中.
有了将页面嵌入到Page Viewer Web部件中的能力,我觉得我们至少具有构建上述功能的技术解决方案的开端.但是我缺乏从此处开发此功能的专业知识.仅使用 在Page Viewer Web部件中,我们可以将给定的Wiki页面嵌入另一个Wiki页面,但是问题在于,不仅嵌入内容,而且功能区和侧菜单也是如此-基本上就像使用iframe.  

如果我们能够仅嵌入给定Wiki页面中的内容,而不包含功能区和侧面菜单,那么我们将是无与伦比的.有人知道这是否可能吗?

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?

我是从Microsoft社区直接带到这里的,在这里我问了同样的问题.有人告诉我,内置Web部件嵌入没有功能区和侧面菜单的Wiki页面是无法实现的.您可以从MSDN论坛寻求帮助,以了解 如果有一些代码可以帮助实现这一目标." 

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." 

推荐答案

对于Wiki页面,我们可以将CSS样式添加到Wiki页面以隐藏功能区,导航,套件栏等.

For wiki page, we can add the CSS style to the wiki pages to hide the ribbon, navigation, suite bar and etc.

<style>
#suiteBarDelta{
	display:none !important;
}
#s4-ribbonrow{
	display:none !important;
}
#s4-titlerow{
	display:none !important;
}
#sideNavBox{
	display:none !important;
}
</style>

如果您要使用Page Viewer Web部件对列表页面或库页面进行内联,则可以添加?isdlg = 1"到页面网址,并添加一些JavaScript以隐藏功能区.

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.

https://davidlozzi.com/2014/10/28/sharepoint隐藏功能区和更多与isdlg/

最好的问候,

丹尼斯


这篇关于在O365 SharePoint中嵌入Wiki页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆