將發佈網站連線到 SharePoint Server 中目錄Connect a publishing site to a catalog in SharePoint Server

摘要:了解如何將發佈的網站集合連線至文件庫或清單作為目錄共用。Summary: Learn how to connect a publishing site collection to a library or list that is shared as a catalog.

若要顯示以目錄形式共用的文件庫或清單中的內容,您必須將發佈網站集合連線到目錄。當您將發佈網站集合連線到目錄時,會發生下列狀況:To show content from a library or list that is shared as a catalog, you must connect the publishing site collection to the catalog. When you connect a publishing site collection to a catalog, the following occurs:

  • 目錄內容會與發佈網站集合整合。The catalog content is integrated into the publishing site collection.

  • 目錄使用的字詞組會與發佈網站集合的字詞組整合。The term set used by the catalog is integrated into the term set of the publishing site collection.

  • 為目錄頁面建立類別頁面與項目詳細資料頁面。A category page and an item details page are created for the catalog pages.

  • 為項目詳細資料頁面建立容易記憶的 URL。Friendly URL is created for the item details page.

  • 為目錄建立結果來源。A result source is created for the catalog.

開始之前Before you begin

注意

因為在網際網路資訊服務 (IIS) 網站執行 SharePoint Server、 系統管理員和使用者而定的瀏覽器提供的協助工具功能。SharePoint Server 支援支援的瀏覽器的協助工具功能。如需詳細資訊,請參閱下列資源: >規劃瀏覽器支援> SharePoint 2013 的協助工具> SharePoint 2013 產品的協助工具功能> 快速鍵> 觸控Because SharePoint Server runs as websites in Internet Information Services (IIS), administrators and users depend on the accessibility features that browsers provide. SharePoint Server supports the accessibility features of supported browsers. For more information, see the following resources: > Plan browser support> Accessibility for SharePoint 2013> Accessibility features in SharePoint 2013 Products> Keyboard shortcuts> Touch

將發佈的網站集合連線到目錄之前,請參閱規劃類別頁面和目錄項目頁面中的資訊。也請確認下列各項:Before you connect the publishing site collection to a catalog, review the information in Plan category pages and catalog item pages. Also verify the following:

注意

如果您想要擴充您的發佈網站的 web 應用程式,例如若要支援不同的驗證提供者、 擴充 web 應用程式之前執行此程序時。如果已連線到目錄後擴充的 web 應用程式目錄項目易記 Url 將會中斷。If you want to extend the web application for your publishing site, for example to support different authentication providers, extend the web application before you do this procedure. If you extend the web application after you've connected to a catalog, the friendly URLs to your catalog items will be broken.

將發佈網站連線到目錄Connect a publishing site to a catalog

若要將發佈網站連線到目錄To connect a publishing site to a catalog

  1. 確認完成此程序的使用者帳戶為發佈網站集合的 SharePoint 網站擁有者群組成員。Verify that the user account that completes this procedure is a member of the Owners SharePoint group on the publishing site collection.

  2. 發佈的網站集合,在 [設定] 功能表上按一下 [網站設定]。On the publishing site collection, on the Settings menu, click Site Settings.

  3. 按一下 [網站設定] 頁面上的 [網站管理] 區段中的 [管理目錄連線]。On the Site Settings page, in the Site Administration section, click Manage catalog connections.

  4. 在 [管理目錄連線] 頁面上按一下 [連線到目錄。可用的型錄清單隨即顯示。請注意會顯示已編目的目錄。On the Manage catalog connections page, click Connect to a catalog. A list of available catalogs appears. Note that only catalogs that have been crawled will appear.

  5. 在行包含您想要連線至目錄中,按一下 [連線]。您也可以在 [搜尋] 欄位中輸入目錄名稱來搜尋特定的目錄。On the line that contains the catalog that you want to connect to, click Connect. You can also search for a specific catalog by typing the catalog name in the search field.

  6. 在 [目錄來源設定] 頁面上的 [連線整合] 區段中執行下列其中一項:On the Catalog Source Settings page, in the Connection Integration section, do one of the following:

    • 要提供的發佈網站目錄的內容並整合目錄標記字詞集發佈網站導覽字詞組,選取 [整合至 「 我的網站目錄。當您選取這個選項時,使用下列步驟來指定哪一層級應整合的字詞組,指定目錄項目詳細資料] 頁面的 URL 並選取類別頁面和目錄項目頁面。To make catalog content available to the publishing site and integrate the catalog tagging term set into the publishing site navigation term set, select Integrate the catalog into my site. When you select this option, use the following steps to specify at which level the term sets should be integrated, specify the URL for the catalog item details page, and select category pages and catalog item pages.

    • 若要讓目錄內容的發佈網站,選取 [連線,但不要不整合目錄。如果您想要用於內容的文件庫建立個別目錄項目頁面,應該選取此選項。To make the catalog content available to the publishing site, select Connect, but do not integrate the catalog. You should select this option if you want to use content from the library to create individual catalog item pages.

      任一選項都會為目錄建立結果來源。Either option creates a result source for the catalog.

  7. 在 [導覽階層] 區段中指定的字詞所在目錄標記字詞組應該可以整合到發佈網站導覽字詞組。預設會出現您先前已設定在文件庫或清單作為目錄共用的目錄瀏覽資料行。本節中的欄位是選擇性的。因此,如果您不要變更本節中的欄位,將整合目錄標記字詞組的根目錄字詞。如果您想要將目錄標記字詞組從不同的字詞整合,請執行下列動作:In the Navigation Hierarchy section, specify the term from which the catalog tagging term set should be integrated into the publishing site navigation term set. The catalog navigation column that you previously configured in Share a library or list as a catalog appears by default. The fields in this section are optional. Therefore, if you don't change the fields in this section, the catalog tagging term set will be integrated from the root term. If you want to integrate the catalog tagging term set from a different term, do the following:

    • 按一下 [階層根目錄字詞] 方塊旁的 [瀏覽有效的選項Next to the Root term of hierarchy box, click Browse for a valid choice.

    • 選取: 新增字詞對話方塊中,按一下對應至您要將目錄標記字詞組整合的層級的字詞、 按一下 [選取] 及 [確定]In the Select: Add Terms dialog box, click the term that corresponds to the level from which you want to integrate the catalog tagging term set, click Select, and then click OK.

    • 若要整合根目錄字詞是位於發佈網站導覽字詞組中所選字詞的上層選取包含在網站導覽的根目錄字詞] 核取方塊。To integrate the root term that is the parent of the selected term in the publishing site navigation term set, select the Include root term in site navigation check box.

      注意

      目錄中的所有字詞都必須以指定的目錄標記字詞組中的字詞標示。如果未完成此動作,所有項目的網站導覽效果將不如預期。All items in the catalog must be tagged with a term from the specified catalog tagging term set. If this is not done, site navigation will not work as intended for all items.

  8. 在 [瀏覽位置] 區段中,指定發佈網站導覽字詞組應該已整合目錄標記字詞組中的字詞。執行下列其中一項:In the Navigation Position section, specify the term in the publishing site navigation term set where the catalog tagging term set should be integrated. Do one of the following:

    • 若要整合目錄標記字詞組來發佈網站導覽字詞組的根目錄字詞,按一下 [新增至導覽根目錄]。To integrate the catalog tagging term set to the root term of the publishing site navigation term set, click Add to navigation root.

    • 若要整合目錄標記字詞組與發佈網站導覽字詞的根目錄字詞下方的字詞設定中、 按一下 [選取網站瀏覽窗格中的替代位置,並再執行下列動作:To integrate the catalog tagging term set to a term below the root term of the publishing site navigation term set, click Select an alternate location in site navigation, and then do the following:

    • 按一下 [瀏覽有效的選項以顯示發佈網站導覽字詞組。Click Browse for a valid choice to display the publishing site navigation term set.

    • 選取: 新增字詞對話方塊中,按一下對應至您要將目錄標記字詞組整合的層級的字詞、 按一下 [選取] 及 [確定]In the Select: Add Terms dialog box, click the term that corresponds to the level from which you want to integrate the catalog tagging term set, click Select, and then click OK.

  9. 若要變更目錄標記字詞組來更新在發佈網站上,瀏覽固定] 區段中選取網站瀏覽至 Pin 條款] 核取方塊。根據預設,會選取此選項。如果清除這個核取方塊,目錄標記字詞組所做的變更不會反映在發佈網站的導覽列中。If you want changes to the catalog tagging term set to be updated on the publishing site, in the Navigation Pinning section, select the Pin terms to site navigation check box. By default, this option is selected. If you clear this check box, changes made to the catalog tagging term set are not reflected on the publishing site navigation.

  10. 在 [目錄項目 URL 行為] 區段中,指定您想要執行的目錄項目 URL 選取下列選項之一:In the Catalog Item URL Behavior section, specify what you want the URL of the catalog item to do by selecting one of the following options:

    • 目錄項目的 URL 指向項目詳細資料] 頁面上,選取 [讓相對於此網站的 Url。當您選取這個選項時,您必須指定目錄項目 URL 格式下一個步驟中所述。這也表示您可以在 [項目詳細資料] 頁面顯示的內容有來自搜尋索引。To point the URL of the catalog item to an item details page, select Make URLs relative to this site. When you select this option, you have to specify a catalog item URL format as described in the next step. This also means that the content that you can display on the item details page has to come from the search index.

    • 若要讓目錄項目 URL 指向來源目錄中的項目,選取 [讓 Url 指向來源目錄。當您選取這個選項時,您沒有指定目錄項目 URL 格式。請注意當您選取這個選項,匿名使用者能夠存取及檢視來源目錄中的項目。To have the catalog item URL point to the item in the source catalog, select Make URLs point to source catalog. When you select this option, you do not have to specify a catalog item URL format. Note that when you select this option, anonymous users are not able to access and view the item in the source catalog.

  11. 在 [目錄項目 URL 格式] 區段中選取項目詳細資料頁面的 URL 應包含的屬性藉由下列其中一項:In the Catalog Item URL Format section, select which properties the URL of the item details page should contain by doing one of the following:

    • 若要使用您指定作為主索引鍵的欄位時您共用的文件庫或清單作為目錄共用文件庫或清單作為目錄中所述,選取 [使用預設目錄來源所提供的 URL 格式。根據預設,已選取此選項。To use the field that you specified as Primary Key the when you shared the library or list as a catalog as described in Share a library or list as a catalog, select Use the default URL format provided by the catalog source. By default, this option is already selected.

    注意

    對於指定的欄位,目錄中的所有項目都必須要有值。若有遺漏值的項目,網站導覽效果將不如預期。All items in the catalog must have values for the specified field. Site navigation will not work as intended for items with missing values.

    • 若要手動定義 URL 格式,請選取 [以手動方式定義的 URL 格式、,然後輸入 URL 中。您應該選取這個選項只有當您建立的項目詳細資料頁面及目錄中的項目不會標記字詞的目錄標記字詞組。輸入 URL 以下列格式: /<項目詳細資料] 頁面上的資料夾> /<項目詳細資料頁面名稱>.aspx 吗? <Managed 屬性名稱>= [ Managed 屬性值] — 例如 /Pages/itemdetails.aspx?TitleProperty=[Title]。To manually define a format for the URL, select Manually define a URL format, and then type in a URL. You should select this option only if you have created an item details page and the items in your catalog are not tagged with a term from a catalog tagging term set. Type the URL in the following format: / <Folder of item details page> /<Name of item details page>.aspx? <Managed property name>=[ Managed property value] — for example, /Pages/itemdetails.aspx?TitleProperty=[Title].

    • 若要建構自訂 URL 根據目錄屬性、 選取建構 URL 格式從目錄屬性,並再執行下列動作:To construct a custom URL based on catalog properties, select Construct a URL format from catalog properties, and then do the following:

    • [可用欄位] 清單中選取最多可以有五個欄位] 和 [新增]In the Available Fields list, select up to five fields, and then click Add.

    重要

    網站欄類型 [數字] 的欄位將無法建立有效的 URL。對於指定的欄位,目錄中的所有項目都必須要有值。若有遺漏值的項目,網站導覽效果將不如預期。Fields of site column type Number will not create a valid URL. All items in the catalog must have values for the specified fields. Site navigation will not work as intended for items with missing values.

  12. 類別頁面] 區段中執行下列其中一項:In the Category Page section, do one of the following:

    • 若有 SharePoint Server 自動建立目錄內容的新類別頁面,按一下 [建立新的頁面,然後再選取主版頁面。頁面會新增至頁面庫名稱_類別-<目錄標記字詞組名稱>。不會自動發佈頁面。To have SharePoint Server automatically create a new Category page for your catalog content, click Create a new page, and then select a master page. The page will be added to the Pages library with the name _Category-<catalog tagging term set name>. The page will not be published automatically.

    • 若要使用已建立類別] 頁面上,選取 [使用現有的頁面,並再指定頁面的位置。To use a Category page that was already created, select Use an existing page, and then specify the location of the page.

  13. [項目頁面] 區段中執行下列其中一項:In the Item Page section, do one of the following:

    • 若有 SharePoint Server 自動建立新的項目] 頁面上的目錄內容,請按一下 [建立新的頁面,然後再選取主版頁面。頁面會新增至頁面庫名稱_CatalogItem-<目錄標記字詞組名稱>。不會自動發佈頁面。To have SharePoint Server automatically create a new Item page for your catalog content, click Create a new page, and then select a master page. The page will be added to the Pages library with the name _CatalogItem-<catalog tagging term set name>. The page will not be published automatically.

    • 若要使用已建立的項目頁面,選取 [使用現有的頁面,並指定此頁面的位置。To use an already created Item page, select Use an existing page, and specify the location of this page.

  14. 按一下 [ OK ]。Click OK.

中斷發佈網站與目錄的連線Disconnect a publishing site from a catalog

如果您要從發佈網站移除已連線目錄的內容,您必須中斷發佈網站與目錄的連線。If you want to remove the content of a connected catalog from a publishing site, you have to disconnect the publishing site from the catalog.

重要

如果您已整合目錄標記字詞集發佈網站導覽字詞組、 標記字詞將不會移除導覽列中時中斷目錄。若要移除標記字詞導覽列中,您必須刪除字詞庫管理中的條款。如需詳細資訊,請參閱建立及管理字詞組中的字詞If you have integrated a catalog tagging term set into the publishing site navigation term set, the tagging terms will not be removed from the navigation when you disconnect from the catalog. To remove the tagging terms from the navigation, you have to delete the terms in Term Store Management. For more information, see Create and manage terms in a term set

此外,如果您有自動建立類別頁面和目錄頁面項目的詳細資料] 頁面上的 SharePoint Server,這些將不會刪除頁面庫中時中斷目錄。Also, if you had SharePoint Server automatically create a category page and an item details page for the catalog pages, these will not be deleted from the Pages library when you disconnect from the catalog.

中斷發佈網站與目錄的連線To disconnect a publishing site from a catalog

  1. 確認完成此程序的使用者帳戶為發佈網站集合的 SharePoint 網站擁有者群組成員。Verify that the user account that completes this procedure is a member of the Owners SharePoint group on the publishing site collection.

  2. 按一下 [網站設定] 頁面上的 [網站管理] 區段中的 [管理目錄連線]。On the Site Settings page, in the Site Administration section, click Manage catalog connections.

  3. 在 [管理目錄連線] 頁面會出現已連線的目錄清單。On the Manage catalog connections page, a list of connected catalogs appears.

  4. 在包含您想要中斷連線的目錄列中按一下 [中斷連線,然後中斷若要確認您想要中斷目錄的連線。On the line that contains the catalog that you want to disconnect, click Disconnect, and then Disconnect to verify that you want to disconnect the catalog.

另請參閱See also

其他資源Other Resources

部落格文章: 您的發佈網站連線到目錄Blog post: Connect your publishing site to a catalog