如何在SharePoint中使用现代功能创建网站模板 [英] How to create site template with modern capabilities in SharePoint

查看:83
本文介绍了如何在SharePoint中使用现代功能创建网站模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用新推出的"网站设计"。通过网站设计我们
可以创建列表,包含一些列的库,安装插件等。但我无法创建页面,我无法将网页部分推送到页面。 

I want to create a site template (lets say leave management system) with newly introduced "Site Design". With site design we can create lists, libraries with some set of columns, installing add-in etc. But I cannot create pages and I cannot push the web part to pages. 

使用SPFx我们无法创建页面,我们无法在页面上添加Web部件(剩下的事情可以完成)。

With SPFx we cannot create pages, we cannot add web parts to the pages (remaining things can be done).

问题是: 

Question is: 

如何使用SharePoint中的现代功能(如网站设计,SPFx,MS Flow或任何其他等)在单个包中部署列表,库,页面,Web部件 

How to deploy lists, libraries, pages, web parts in a single package using modern capabilities in SharePoint like site design, SPFx, MS Flow or any other etc. 

Is有没有办法在提供商托管应用程序中实现(创建列表,创建页面,安装SPFx,将现代Web部件推送到页面)?

Is there a way to achieve in Provider Hosted apps(creating lists, creating pages, installing SPFx, pushing modern web parts to pages)?




Mihir

推荐答案

1。现代功能不提供在单个包中部署列表,库,页面,Web部件的功能。此要求的合适方式是使用PnP PowerShell实现,它将提供支持部署和创建的多个组件:

1. Modern features not provide function to deploy lists, libraries, pages, web part in a single package.The suitable way for this requirement is to use the PnP PowerShell to achieve, it will provide multiple components supported to deploy and create:

使用PnP将网页部件添加到页面:

Add web parts to page using PnP:

使用Pnp Powershell将Web部件添加到SharePoint页面

创建页面:

使用PnP PowerShell在SharePoint站点中创建
现代页面

2。提供商托管的应用程序不支持创建像SPFX这样的现代组件。

2. Provider hosted app not support to create Modern components like SPFX.

这是一个关于创建Moder页面的非常详细的演示,然后将SPFX客户端Web部件添加到带有PnP库的页面中供您参考:

Here is a very detailed demo about create Moder page and then add the SPFX Client Web Part into the page with PnP library for your reference:

创建/配置现代页面和SPFx Web部件

谢谢

最好的问候


这篇关于如何在SharePoint中使用现代功能创建网站模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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