在 SharePoint Server 中規劃變化

適用于:是-img-13 2013是-img-16 2016是-img-19 2019是-img-se訂閱版本 是-img-sopMicrosoft 365 中的 SharePoint

SharePoint Server 和 Microsoft 365 中 SharePoint 的變化功能可讓不同網站上的特定物件使用內容,方法是將內容從來源變化網站同步至每個目標變化網站。 目標變化網站上的內容可先翻譯成其他語言,再行發佈。 只有使用其中一個「發佈」網站範本建立的網站,或是已啟用 SharePoint Server 發佈基礎結構功能的網站,才能使用變化。

本文將提供您在發佈網站集合中使用變化時所應考量之重要事項的相關資訊,並說明您規劃在 SharePoint Server 中使用變化的解決方案時所須執行的相關工作。 本文將不提供變化的概觀、說明變化的使用方式,或解說變化標籤與階層的建立方式。 如需變化的詳細資訊,請參閱SharePoint Server 中的變化概觀

關於規劃變化

在本文說明的規劃程序中,首先會說明您在計劃將變化用於 SharePoint Server 解決方案時所應考量的重要事項。 接著將會說明您計劃將變化用於 SharePoint Server 時所需執行的步驟。 這些步驟包括:

  • 確認所需的變化及選取變化根網站。

  • 指定來源變化網站及規劃目標變化網站。

  • 決定如何在目標與來源網站上建立網站、清單與頁面。

  • 規劃如何排程變化計時器工作。

您可以將這項資訊記錄在變化規劃工作表中。

計劃使用變化時所應考量的重要事項

在您計劃將變化用於 SharePoint Server 解決方案之前,應留意變化與其他 SharePoint Server 功能之間的互動。 本節將提供您計劃將變化用於 SharePoint Server 解決方案時所應考量之重要事項的相關資訊。

內容核准

內容核准是具有核准者權限的網站成員據以控制內容發佈的方法。 在進行內容核准時,若核准了新的主要版本,則會將內容視為已發佈的內容,因為主要版本可供具有讀取權限的使用者檢視。 在變化網站上進行內容核准時,必須在來源與目標變化網站上的頁面庫中進行主要與次要版本設定。 如需內容核准的詳細資訊,請參閱規劃內容核准與排程 (SharePoint Server 2010)

內容核准具有某些特殊因素是您在規劃變化時所應考量的:

  • 在來源變化網站上提交頁面以供核准時,會使用下列欄中儲存的值 (依照下列順序) 產生電子郵件訊息,並傳送至頁面的連絡人:

    • 連絡人

    • 連絡人電子郵件地址

    • 修改者

      注意事項

      Starting with the Contact field, each field is checked for contact information to which the notification can be sent. If the first field is empty, the next field is tried until contact information is found.

      頁面經核准可發佈後,將可同步處理至目標變化網站。 您可以設定變化設定,讓內容以手動或自動方式同步處理至變化網站。

  • 在目標變化網站上,同步處理自來源變化網站的頁面一律會被次要版本號碼。 If the page is new to the target site, it is assigned version 0.1. If the page already exists on the target variation site, the synced page is assigned the next available minor version number. 例如,若目標變化網站上有某個頁面的 2.1 版,當該頁面的新變化同步處理至目標網站時,新頁面將會是 2.2 版。

  • If a page is published on the source variation site, when the page is synced to target variation sites, the Approval status is set to Draft. If Content Approval and Document Version History are enabled in the Pages library on target variation sites, the page must be approved on each target variation site before the page is available to readers.

注意事項

Changes made to content that originates on the source variation site can supersede changes made to the content on the target variation site. For example, if the source variation site is in one language and the target variation site is in another, the following situation might occur: An editor changes a localized page on the target variation site, assigning it a new minor version, 1.1. Then, a writer on the source variation site makes different changes to the same page, which is synced to the target variation site as version 1.2. This supersedes the version 1.1 changes to the page. In this example, an editor for the target variation site would have to restore the previous version of the page from the Version History, accept the new version, or use the View Changes button to view differences between the current version and previous versions of the page, and manually merge the new and previous versions into a new version. For more information about versioning, see Plan document versioning, content approval, and check-out controls in SharePoint 2013.

If you use site variations, you must plan your site navigation experience carefully. In SharePoint Server, site navigation links to the current site's peer sites are automatically generated and displayed in the Global Navigation and Current Navigation menus of a web page. In variation sites, where the current site's peers are variations of the same site, you might not want to give site users the ability to browse to other sites in this manner. You can use the Navigation Settings page to change the settings of the Global Navigation and Current Navigation menus so that peer sites are not displayed.

注意事項

[!附註] 在來源變化網站上對網站導覽所做的變更,不會同步處理至目標變化網站。 若要讓目標變化網站上的網站導覽與來源變化網站上的網站導覽相符,您必須手動變更目標變化網站上的網站導覽設定。

如需網站導覽的詳細資訊,請參閱 SharePoint Server 中的網站導覽概觀

內容部署

內容部署會將來源網站集合中的內容複製到目的地網站集合。

在 [變化建立階層工作定義] 執行時,建議您停用任何包含來源變化網站的內容部署工作。 若在 [變化建立階層工作定義] 計時器工作執行期間同時執行內容部署,僅部分建立的目標變化網站可能會同步處理至目的地伺服器上的目標變化網站。

如需內容部署規劃的詳細資訊,請參閱規劃內容部署

跨網站發佈

不同於會將來源變化網站中的內容同步處理至目標變化網站的變化功能,跨網站發佈功能只會使用搜尋索引顯示其他網站上的內容。 您可以將清單或文件庫當作以搜尋服務編製索引的共用目錄,然後在其他頁面與其他網站集合的網頁組件中顯示查詢結果中的內容。

變化功能只能同步處理單一網站集合內的內容。 但您可以將清單與文件庫當作變化網站中的共用目錄。 接著,您可以建立不限數量的網站集合以顯示您的變化標籤,以及顯示這些網站集合中的內容。 此可以讓您不同的變化標籤具有不同的國碼頂層網域。 例如,您可以有 contoso.co.uk 或 contoso.mx。

注意事項

跨網站發佈僅適用於 SharePoint Server。

如需跨網站發佈的相關資訊,請參閱規劃 SharePoint Server 的跨網站發佈

如需如何規劃要在多語系跨網站發佈網站上使用變化時之網站架構的詳細資訊,請參閱SharePoint Server 中多語系跨網站發佈網站的規劃變化

網頁組件

網頁組件是頁面中以 SharePoint Server 為基礎的建置區塊之一。 網頁組件大多是用來顯示特定資料類型的,例如文字、HTML 或影像。 SharePoint Server 包含一組預設的網頁組件,而您也可以開發或匯入自訂網頁組件。

Web Parts are synced with pages of variation sites. If Update Target Page Web Parts is enabled, Web Parts are updated only on the target variation site if a page that contains that Web Part is synced to the target variation site. If the Web Part appears on multiple target pages on different target variation sites, all instances of the Web Part are updated when the page from the source variation site is synced to the target variation sites. For example, if a page contains a Media Web Part, and the Web Part is configured to point to video A that is stored on a site outside the variations hierarchy, when the page is published on the source variation site, the page is synced to all target variation sites. The pages on the target variation sites display video A in the Media Web Part. If the page on the source variation site is updated and the Media Web Part is changed to point to video B, the pages on the target variation sites continue to point to video A until the page on the source variation site is published and synced to the target variation sites. Also, if readers on the target variation sites do not have permission to view the video file that is stored outside the variations hierarchy, they cannot view the video. To prevent unintended Web Parts behavior such as this, you can configure the variations settings so that Web Part updates are not synced to target variation sites.

多語系網站

SharePoint Server 具有數項功能可供您支援位於不同地區或使用不同語言的使用者。 您可以利用這些功能建立使用不同語言的網站,以及讓使用者能夠以網站建構語言以外的語言,檢視網站的使用者介面。 若您想將變化用於多語言網站上,您必須另行執行其他步驟,以啟用變化網站的多語言支援。 如需如何規劃多語言網站的詳細資訊,請參閱在 SharePoint Server 中規劃多語系網站

確認所需的變化

變化可用來建立多語言網站和以地區差異為基礎的網站。 請確認您的解決方案需要哪些變化,並列出屬於變化階層的網站清單。

若您要使用變化在 SharePoint Server 中建立多語言網站,且您要以其他語言顯示目標變化網站的網站管理頁面,您必須為每個對應於變化網站的語言安裝語言套件。 如需如何安裝語言套件的相關資訊,請參閱安裝或解除安裝 SharePoint 2016 的語言套件。 如果您將使用變化在 Microsoft 365 中的 SharePoint 中建立多語系網站,則會安裝所有語言套件並可供使用。

指定來源變化網站

來源變化網站是所有網站所要共用的內容進行編輯與發佈的網站,也是用來將變更同步處理至目標變化網站的網站。 您所建立的第一個變化標籤,會自動指定為來源變化網站。 變化階層中只能有一個來源變化網站。 來源變化網站一經指定,即無法變更。

Review the list of sites for your variations solution, and decide which site will be the source variation site. Record the source variation site for your solution in the top row of the Variations data sheet tab in the Variations planning worksheet. Enter the information for the following columns:

  • 網站範本語言 要做為預設使用者介面語言的語言套件名稱。 例如,英文。 如果您未在目標網站上使用多語系使用者介面,請將此資料行保留空白。

  • 地區設定 標籤所顯示的地區設定。 例如英文 (美國)。

  • Variations home The location where the source and target variations will be created. The variation home site provides the URL for all variation sites and contains the landing page that redirects users to the correct variation site. The home site can be a site at any level in a site collection, including the top-level site. However, after you specify the home site, you cannot change it after you click Create Hierarchies, and you cannot use variations anywhere else in the site collection.

    若要指出網站集合的頂層網站,請輸入斜線 (/)。

    注意事項

    若首頁網站中包含網站階層,或包含您要在來源變化網站中加入的清單或頁面庫內容,您必須在來源變化網站建立後,手動將階層或內容複製到該網站。

  • 標籤名稱 將出現在 URL 中的名稱。

  • 標籤說明 標籤的說明。

  • 顯示名稱 將出現在網站導覽中的名稱。

  • 發佈網站範本 用來建立來源變化網站的網站範本。 請輸入 [具有工作流程的發佈網站] 或 [發佈網站]。

  • 標籤連絡人 變化網站的一或多個連絡人。

規劃目標變化網站

檢閱變化階層的網站清單,然後將每個目標變化網站記錄在變化規劃工作表中。 請為每個網站輸入下列幾欄的資訊。

  • 網站範本語言 要做為預設使用者介面語言的語言套件名稱。 例如,德文。 如果您未在目標網站上使用多語系使用者介面,請將此資料行保留空白。

  • 地區設定 標籤所顯示的地區設定。 例如德文 (德國)。

  • 標籤名稱 將出現在 URL 中的名稱。

  • 標籤說明 標籤的說明。

  • 顯示名稱 將出現在網站導覽中的名稱。

  • 階層建立 來源階層中將會同步處理至目標變化網站的部分。 請輸入下列其中一項:

    • 發佈網站、具有變化的清單,和所有頁面

    • 僅限發佈網站

    • 僅限根網站

  • 允許人工翻譯 目標標籤上是否允許人工翻譯。 請輸入 Y 或 N。

  • 譯者語言 允許人工翻譯時要在目標標籤上使用的譯者語言。

  • 允許機器翻譯 目標標籤上是否允許機器翻譯。 請輸入 Y 或 N。

    注意事項

    如果伺服器上未啟用機器翻譯服務,機器翻譯選項即無法使用。

  • 機器翻譯語言 允許機器翻譯時要在目標標籤上使用的機器翻譯語言。

  • 標籤連絡人 變化網站的一或多個連絡人。

注意事項

[!附註] SharePoint Server 最多可支援 209 個變化標籤。 Microsoft 365 中的 SharePoint 最多支援 50 個變化標籤。

規劃自訂主版頁面、配置頁面或樣式表

您可以決定在變化網站上使用自訂主版頁面、頁面配置或樣式表。 例如,若網站上使用的語言是由右至左讀取,您可能需要不同的主版頁面與頁面配置。 主版頁面、頁面配置與樣式表皆由網站集合的頂層網站所管理。 因此,這些資源的所有變更皆必須在頂層網站上的其中一個位置進行,如下表所示。

表格:資源進行變化自訂的位置

資源 位置
主版頁面
主版頁面圖庫
配置頁面
主版頁面圖庫
XSL 樣式與階層式樣式表
樣式庫

目標頁面可獨立於來源變更網站外使用不同的頁面配置。 當來源網站的頁面配置變更時,目標頁面的頁面配置並不會隨之變更。

規劃自訂內容類型

對於來源變化網站的頁面庫中儲存的所有頁面,您必須使用相同的內容類型 (頁面內容類型,或是以頁面內容類型為基礎的內容類型)。 The easiest way to do this is to use a content type that is defined on the Site Content Type page in the top-level site of the site collection.

若變化網站上有一或多個頁面必須要有自訂欄,請將這些欄新增至您在頁面庫中使用的內容類型。 例如,您可以新增一個指出頁面是否已當地語系化的欄。 如需如何規劃內容類型與欄的詳細資訊,請參閱Plan content types and workflows in SharePoint 2013

決定如何在目標變化網站上建立網站、清單與頁面

若在網站階層中,來源變化網站在其下將會有其他網站,您就必須規劃如何在目標變化網站上建立這些網站。 有兩種方式可在目標變化網站上建立網站:自動與手動。 根據預設,任何在來源變化網站下新增的新網站,都將在所有目標變化網站上自動建立。 但若您停用自動為變化建立網站與頁面的功能,則您對於每個建立在來源變化網站下的新網站,都必須以手動方式指定要用來建立網站的目標變化網站。 雖然讓新網站可自動建立在目標變化網站上,有利於減少網站管理員的工作量,但手動建立網站卻可讓您指定哪些網站應建立在哪些目標變化網站上。 若您只想在部分 (而非全部) 目標變化網站上加入網站,這將有所幫助。

對於清單與頁面內容,您必須決定兩個有關於如何傳播內容的事項。

  1. 就來源的觀點而言,發佈新內容後將會如何? 您可以選擇執行下列其中一項:
  • Automatically create a copy of the content in all target variation sites. This is the Create Everywhere option, and it is enabled by default.

  • Manually create a copy of the content in selected target variation sites. Subsequent updates to that content will be available automatically for the specified target variation sites. This is the Create Selectively option.

  1. 就目標的觀點而言,新內容可供使用後將會如何? 您可以選擇執行下列其中一項:
  • 自動同步處理來自來源變化網站的變更,並將其新增為目標變化網站上的新草稿版本。

  • 通知目標標籤擁有者有可用的變更。 標籤擁有者可決定是否要手動同步處理內容。

By default, any new pages that are published in the Pages library of the source variation site will automatically be created on all target variation sites. However, if Create Selectively is enabled, for each new page that you create on the source variation site, you must manually specify the target variation site on which the page should be created. The Create Selectively option can be useful if you want certain pages to be included only on some, but not all, target variation sites.

Lists can be created automatically on target variation sites only if they are created on the source variation site before the variation hierarchy is created. If a list is created after the variations hierarchy is set up, a list must be created manually on the target variation sites by using the Settings button on the Variations tab on the ribbon for the list on the source variation site. However, new list items can be created automatically on a target variation site.

By default, the Create Everywhere option is enabled. You should carefully consider the potential increase in administrative tasks if you decide to enable the Create Selectively option. You can configure the settings for site, list, and page creation behavior on the Variations Settings page in Site Collection Administration. 如需詳細資訊,請 參閱建立多語言網站

規劃變化計時器工作排程

The variations feature uses timer jobs to perform tasks such as creating and propagating sites and pages. A timer job runs inside OWSTIMER, a Windows service for SharePoint Server. Each timer job has its own default schedule for when the job runs. You can change the frequency with which each job runs on the Job Definitions page on the Central Administration website.

注意事項

計時器工作無法在 Microsoft 365 的 SharePoint 中設定。

下表列出變化計時器工作和每項工作的預設排程。

表格:變化計時器工作與預設排程

工作名稱 預設排程
變化建立階層工作定義
每小時
變化傳播清單項目工作定義
每 15 分鐘
變化傳播頁面工作定義
每 15 分鐘
變化傳播網站與清單工作定義
每 30 分鐘

您可以設定以分鐘、每小時、每日、每週或每個月為間隔的週期性排程,以指定每項工作的執行時間。 若您選取每日、每週或每個月,您將可指定工作所應執行的時間範圍,而伺服器將會在要開始執行工作的指定範圍內隨機選取一個時間。 此選項最適用於在伺服器陣列的多部伺服器上執行的高負載工作。 請注意,同時在伺服器陣列中的所有伺服器上執行此類工作,可能會加重伺服器負載並影響效能。 若要避免此狀況,您可以為工作指定確切的開始時間。

You should carefully plan when the variations timer jobs should run on your servers, and set the recurring schedule accordingly. For example, to determine how often the Variations Propagate List Items Job Definition or the Variations Propagate Page Job Definition should run and sync list items or pages to target variation sites, consider how many list items or pages will be created on the source variation site, and how often those list items or pages will be updated.

若您想變更變化計時器工作的預設排程,請將每項計時器工作的新排程記錄在 [變化規劃工作表] 中的 [變化計時器工作] 索引標籤上。

變化規劃工作表

下載 Excel 版的變化規劃工作表

另請參閱

概念

SharePoint Server 中的變化概觀