新式化经典 SharePoint 网站Modernize your classic SharePoint sites

SharePoint Online 在不断发展和改进之中,这对于服务使用者来说是件好事。SharePoint Online is continuously evolving and improving, which is a great thing for you as a consumer of the service. 关键改进之一是,提供新式网站(即新式 Office 365 组连接的团队网站或通信网站),外加可以在美观的新式用户界面中使用的改进功能。One of the key improvements is the availability of modern sites, which are modern Office 365 group-connected team sites or communication sites, combined with improved functionality that can be consumed from a beautiful modern user interface. 若要详细了解新式体验,请查看 SharePoint 经典和新式体验一文,并可从 SharePoint Look Book 发现能够使用 Office 365 的 SharePoint 生成的新式体验,从而获得启发。To learn more about modern, checkout the SharePoint classic and modern experiences article and get inspired by the SharePoint Look Book, as it allows you to discover the modern experiences you can build with SharePoint in Office 365.

这一切都很棒,但你可能会问自己:“我有很多经典(团队)网站,该如何将它们引入新式 SharePoint 领域呢?”All of this is great, but you might ask yourself, "I have lots of classic (team) sites...how do I bring them into the modern SharePoint world?" 答案是就地新式化:按照本节中的指导,可以将经典网站转换(或“新式化”)为新式 Office 365 组连接的网站。The answer is in-place modernization: you can fully transform (or "modernize") a classic site into a modern Office 365 group-connected site by following the guidance in this section. 新式化网站涉及以下一个或多个步骤:Modernizing your sites involves one or more of the below steps:

新式化概述

提示

可以决定运行的步骤以及运行它们的顺序。You can decide which steps to run and the order in which to run them. 尽管没有放之四海而皆准的流程来使网站新式化,但下面是推荐的方法。Although there's no one-size-fits-all process to modernize your site, the following is the recommended approach.

重要

新式化工具和所有其他 PnP 组件均为开源工具,由一个活跃社区提供支持服务。Modernization tooling and all other PnP components are open-source tools backed by an active community providing support for them. 没有来自 Microsoft 的官方支持渠道的开源工具支持的 SLA 。There is no SLA for open-source tool support from official Microsoft support channels.

重要

对于发布门户(基于 BLANKINTERNET#0、ENTERWIKI#0、SRCHCEN#0、SRCHCENTERLITE#0、BICENTERSITE#0、POINTPUBLISHINGHUB#0、POINTPUBLISHINGTOPIC#0 或使用“页面”库的网站),目前不支持将其连接到 Office 365 组或使用新式页面。For publishing portals (sites based upon BLANKINTERNET#0, ENTERWIKI#0, SRCHCEN#0, SRCHCENTERLITE#0, BICENTERSITE#0, POINTPUBLISHINGHUB#0, POINTPUBLISHINGTOPIC#0 or sites using the “Pages” library) it's not currently supported to connect these to an Office 365 group or to use modern pages. 如果想要使发布门户新式化,建议从新的通信网站开始,并对其进行相应地配置。If you want to modernize your publishing portal it's recommended to start from a new communication site and configure that one accordingly. 有关详细信息,请参阅新式化经典发布门户For more information, see Modernize classic publishing portals.

让网站充分利用新式用户界面Enable your site to fully leverage the modern user interface

新式网站最明显的特征是新式用户界面。The most visible aspect of a modern site is its modern user interface. 如果尚未关闭新式体验,某些页面将显示在新式用户界面中:If you haven't turned off the modern experience, certain pages appear in the modern user interface:

  • 大多数列表和库的列表和库页面List and library pages for most lists and libraries
  • 网站内容页Site contents page
  • 网站使用情况页Site usage page
  • 回收站页Recycle Bin pages

不过,如果导航网站,便会注意到以下页面仍使用经典用户界面:However, if you navigate your site, you will notice that the following pages still use the classic user interface:

  • 主页和所有其他网站页面(Wiki 页面和/或 Web 部件页)Home page and all other site pages (wiki pages and/or web part pages)
  • 特定列表和库的列表和库页面List and library pages for certain lists and libraries

如需最大化使用新式用户界面来显示网站页面以及列表和库页面,请参阅新式化用户界面To maximize the use of the modern user interface for your site pages and list and library pages, see Modernize the user interface.

如需详细了解在使用新式用户界面时如何取消阻止列表和库,请参阅最大化新式列表和库的使用To learn more about how to unblock your lists and libraries when using the modern user interface, see Maximize use of modern lists and libraries.

新式化自定义中所述,还将需要使你的自定义新式化。You will also need to modernize your customizations as explained in Modernize customizations.

将网站连接到 Office 365 组Connect your site to an Office 365 group

经典(团队)网站未连接到 Office 365 组,而新式团队网站已连接。Classic (team) sites are not connected to an Office 365 group, whereas modern team sites are. 因此将网站连接到 Office 365 组是网站新式化的重要组成部分。Connecting your site to an Office 365 group is an essential part of modernizing a site. 连接到 Office 365 组使网站能够使用其他 Office 365 服务,例如 Teams、Planner 和 Outlook。The connection to an Office 365 group enables the site to consume other Office 365 services such as Teams, Planner, and Outlook.

有两种方式可将网站连接到 Office 365 组:There are two options to connect your sites to an Office 365 group:

  • 可以让各个网站所有者代表他们这样做,具体是使用能够从用户界面启动的向导。You can have each site owner do this on their behalf by using a wizard that can be launched from the user interface.
  • 可以执行批量操作(称为组连接),一次性将 Office 365 组连接到一系列网站。You can perform a bulk operation (known as a group-connection) in which you connect an Office 365 group to a series of sites at one time. 企业客户倾向于选择此选项,因为这样能使你控制配置(公用/专用、网站分类、别名)。This option is preferred for enterprise customers because it enables you to control the configuration (public/private, site classification, alias name).

如需了解更多有关连接到 Office 365 组和执行组连接的信息,请参阅连接到 Office 365 组For more information about connecting to an Office 365 group and performing a group-connection, see Connect to an Office 365 group.

切换到新式租户范围内品牌Switch to a modern tenant-scoped branding

将网站连接到 Office 365 组不仅可以为你提供组连接网站的优势,还能提供全新的新式网站主页。Connecting your site to an Office 365 group not only gives you the benefits of a group-connected site, but also provides you with a new modern site home page. 根据需求,你可以使用此新主页,也可选择创建自己的新式主页。Depending on your needs, this new home page might be adequate, but you can choose to create your own modern home page. 此时,也可执行其他新式化任务,如切换到新式网站主题。At that point, it makes sense to include other modernization tasks as well, such as switching to a modern site theme.

在 SharePoint(团队)网站使用公司品牌非常常见,对于经典网站,已使用下面的一个或多个组件:网站主题、备用 CSS 和母版页。Using your company branding on SharePoint (team) sites is very common, and for classic sites you used one or more of the following components: site themes, alternate CSS, and master pages. 不过,备用 CSS 和母版页与新式用户界面不兼容,因此必须评估这些品牌自定义是否仍相关。However, alternate CSS and master pages are not compatible with the modern user interface, so you must evaluate whether these branding customizations are still relevant.

虽然经典网站主题契合新式用户界面,但现已让租户控制网站主题,因此切换到此模型可以让新式化网站永不过时。While classic site themes are respected in a modern user interface, we now have tenant-controlled site theming, so switching over to that model will future-proof your modernized site.

如需了解更多信息,请参阅新式化网站品牌For more information, see Modernize site branding.

将经典网站页面转换为新式页面Transform your classic site pages into modern pages

网站转换中的最后一步是转换网站页面。The final step in a site transformation is transforming your site pages. 完成其他步骤后,网站页面仍以经典用户界面显示。After you have completed the other steps, your site pages still appear in the classic user interface. 页面转换并不是一个简单的过程,因为经典 Web 部件的功能与新式页面上第一方 Web 部件的功能之间没有一对一映射关系。Page transformation is not a simple process because there's no one-on-one mapping between the functionality offered by classic web parts and what's offered by the first-party web parts on modern pages. 因此,建议只转换频繁使用的页面。Therefore, we recommend that you transform only the pages that are frequently used.

有关页面转换的详细信息,请参阅将经典页面转换为新式页面For more information about page transformation, see Transform classic pages to modern pages.

另请参阅See also