階段 3: 如何為 SharePoint Server 中目錄啟用清單Stage 3: How to enable a list as a catalog in SharePoint Server

摘要:了解如何啟用清單以在 SharePoint Server 2016 目錄。Summary: Learn how to enable a list as a catalog in SharePoint Server 2016.

注意

大部分的這一系列中所述的功能是僅適用於 SharePoint Online 中的私人每個網站集合。Most of the features described in this series are available only for private sites collections in SharePoint Online.

快速概觀Quick overview

中所述中所述階段 2: 清單內容匯入至 SharePoint Server 中的產品目錄網站集合,我們已將 Contoso 的產品線相關內容匯入至 [產品] 清單。若要顯示我們發佈入口網站 (Contoso 網站) 此產品資訊,我們必須啟用 [產品] 清單作為目錄。As described in as described in Stage 2: Import list content into the Product Catalog Site Collection in SharePoint Server, we've imported content about Contoso's product line into the Products list. To display this product information in our Publishing Portal (the Contoso website), we must enable the Products list as a catalog.

啟動階段 3Start stage 3

  1. 在 [產品] 清單中,從 [清單] 索引標籤上按一下 [清單設定]。On the Products list, from the LIST tab, click List Settings.

    清單設定

  2. 在 [設定] 頁面上按一下 [目錄設定]。On the Settings page, click Catalog Settings.

    目錄設定

    我們將會在 [目錄設定] 頁面上,我們將分散至個別區塊上定義一些事項。We'll define several things on the Catalog Settings page, which we'll separate into individual chunks.

  3. 目錄共用] 中,選取 [啟用為目錄此文件庫For Catalog Sharing, select Enable this Library as a catalog.

    目錄共用

選取此,我們會確認該內容從產品清單應該新增至搜尋索引。By selecting this, we confirm that content from the Products list should be added to the search index.

 ![Catalog Sharing 2](../media/OTCSP_CatalogSharing2.png)
  1. 匿名存取,按一下 [啟用匿名存取] 和 [讓匿名For Anonymous Access, click Enable anonymous access, and then click Make Anonymous.

    匿名存取

依照此,我們授與匿名訪客也就是訪客未登入至 Contoso 的網站的存取權檢視從這份清單的內容。By doing this, we grant anonymous visitors, that is, visitors who are not logged on to Contoso's website, access to view content from this list.

Note that we're **not** granting visitors access to the list itself. All we're doing is granting anonymous visitors access to **view** the catalog content from the search index. Anonymous visitors will never be able to see the actual **Products** list. 

 ![Anonymous Access Image](../media/OTCSP_AnonymousAccessImage.gif)
  1. 導覽階層的 (這個區段會列在 UI 中的目錄項目 URL後,但我們會先有關以此告訴您,) 選取項目的類別For Navigation Hierarchy (this section is listed after Catalog Item URL in the UI, but we'll tell you about this one first), select Item Category.

    導覽階層

在前一篇文章,階段 2: 清單內容匯入至 SharePoint Server 中的產品目錄網站集合,我們剛才受管理的中繼資料欄項目類別如何繫結至產品階層的字詞組。In the previous article, Stage 2: Import list content into the Product Catalog Site Collection in SharePoint Server, we showed you how the managed metadata column Item Category is tied to the Product Hierarchy term set.

 ![Item Term Connection](../media/OTCSP_ItemTermConnection.PNG)

以下選取項目類別,我們實際上指定我們發佈網站 (Contoso 網站) 上的導覽將會由產品階層的字詞組中的結構。By selecting Item Category here, we are in fact specifying that the navigation on our publishing site (the Contoso website) will be determined by the structure in the Product Hierarchy term set.

In the following screen shot, notice that the structure in the **Product Hierarchy** term set matches the navigation on the Contoso website. 

 ![Contoso Product Hierarchy](../media/OTCSP_ContosoProductHierarchy.PNG)

產品階層字詞字詞組將也用於發佈網站 (Contoso 網站) 上建立我們類別頁面的易記 URL。例如,顯示攝影機之頁面的 URL 是http://www.contoso/cameras/camcorders,並顯示相機附屬應用程式] 頁面的 URL 是http://www.contoso/cameras/camera-accessoriesThe terms from the Product Hierarchy term set will also be used to create a friendly URL for our category pages on the publishing site (the Contoso website). For example, the URL to the page displaying camcorders is http://www.contoso/cameras/camcorders , and the URL to the page displaying camera accessories is http://www.contoso/cameras/camera-accessories .

 ![Contoso Friendly URL](../media/OTCSP_ContosoFriendlyURL.PNG)
  1. 目錄項目 URL 欄位,選取應該用來建立唯一的 URL 產品清單欄。Contoso,我們將使用群組編號項目編號For Catalog Item URL Fields, select the list columns that should be used to create a unique URL to a product. For Contoso, we'll use Group Number and Item Number.

    項目 URL

某項特定產品的 URL 會組成我們指定的導覽階層(上一個步驟中),從我們指定為目錄項目 URL 欄位的欄位值。選取時這些欄位,我們應該使用至少一個欄位包含產品的唯一值,因為我們想要在產品 URL 中使用此唯一值。依照此產品Fabricam 首頁 Movimaker M300的 URL 會與 URL 不同產品Fabricam 首頁 Movimaker M400The URL to a specific product will be composed of the terms that we specify in Navigation Hierarchy (previous step), and the values from the fields we specify as Catalog Item URL Fields. When selecting these fields, we should use at least one field that contains a product unique value, because we want to use this unique value in the product URL. By doing this, the URL to the product Fabricam Home Movimaker M300 will differ from the URL to the product Fabricam Home Movimaker M400 .

For Contoso, the unique identifier of a product is the value in the **Item Number** column. We also want to use the value of the **Group Number** column. Therefore, we'll add them both. Later in this series, we'll explain why we also want to use **Group Number**. 

 ![Friendly Item URL](../media/OTCSP_FriendlyItemURL.PNG)

我們最終目錄設定] 頁面上看起來如下:Our final Catalog Settings page looks as follows:

 ![Final Catalog Settings](../media/OTCSP_FinalCatalogSettings.PNG)

因此,現在我們已設定所有這些規格,該是時候來編目目錄。So now that we've set all these specifications, it's time to crawl the catalog.

本系列中的下一篇文章Next article in this series

階段 4: 設定搜尋並啟用在 SharePoint Server 中的目錄內容的編目Stage 4: Set up search and enable the crawling of your catalog content in SharePoint Server