階段 2: 清單內容匯入至 SharePoint Server 中的產品目錄網站集合Stage 2: Import list content into the Product Catalog Site Collection in SharePoint Server

摘要:了解如何在 SharePoint Server 2016 產品目錄網站集合將匯入清單內容。Summary: Learn how to import list content into the Product Catalog Site Collection in SharePoint Server 2016.

注意

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

啟動階段 2Start stage 2

我們設定我們產品目錄網站集合中所述後階段 1: 建立跨網站發佈 SharePoint Server 中的網站集合,我們可以將內容匯入至這個網站集合。若要這樣做,我們將使用 PowerShell 指令碼。但是我們一開始之前,我們看項目會自動建立產品目錄網站集合中。After we've set up our Product Catalog Site Collection, as described in Stage 1: Create site collections for cross-site publishing in SharePoint Server, we can import content into this site collection. To do this, we'll use PowerShell scripts. But before we start, let's take a look at what is automatically created in a Product Catalog Site Collection.

在我們新建產品目錄網站集合,我們可以看到名為產品的預設清單範本。In our newly created Product Catalog Site Collection, we can see a default list template named Products.

產品清單

[產品] 清單包含名為項目類別的受管理的中繼資料網站欄。The Products list contains a managed metadata site column named Item Category.

項目類別

項目類別網站欄相關聯與名為產品階層的字詞組。The Item Category site column is associated with the term set named Product Hierarchy.

產品階層

若清單內容匯入至 [產品] 清單中,我們將使用將的 PowerShell 指令碼:To import list content into the Products list, we'll use PowerShell scripts that will:

  • 將內容新增至 [產品] 清單中。Add content to the Products list.

  • 將字詞新增至產品階層的字詞組。Add terms to the Product Hierarchy term set.

  • 在 [產品] 清單中的每個項目關聯正確的字詞組的產品階層字詞、 的和在 [產品] 清單中的項目類別] 欄中顯示此。Associate each item in the Products list with the correct term from the Product Hierarchy term set, and display this in the Item Category column in the Products list.

我們可以執行 PowerShell 指令碼之前,我們需要準備下列:Before we can run the PowerShell scripts, we'll have to prepare the following:

  • 我們想要新增至 [產品] 清單的網站欄的清單。A list of the site columns we want to add to the Products list.

  • Tab 字元分隔的文字檔案包含我們想要新增至 [產品] 清單的內容。A tab delimited text file that contains the content we want to add to the Products list.

  • Tab 字元分隔的文字檔案包含要新增至產品階層的字詞組分類。A tab delimited text file that contains the taxonomy to be added to the Product Hierarchy term set.

PowerShell 指令碼如何建立] 索引標籤上的指示分隔文字檔,以及如何變更,並使用指令碼可以找到中匯入至 SharePoint 2013 產品] 清單的清單內容匯入的指示。The PowerShell scripts, instructions on how to create the tab delimited text files, and instructions on how to change and use the import scripts can be found in Import list content to Products list for SharePoint 2013.

我們已執行的五個的 PowerShell 指令碼之後,我們要取得下列:After we have run the five PowerShell scripts, we get the following:

  • 在 [產品] 清單中的清單內容。在我們的案例中,每個清單項目會是 Contoso 想要在其網站上顯示的產品。List content in the Products list. In our scenario, each list item is a product that Contoso want to display on their website.

  • 產品階層的字詞組中的字詞。在我們的案例中,字詞組會反映如何 Contoso 已分類其產品,例如一個類別會呼叫筆記型電腦] 及另一個是"MP3"player。Terms in the Product Hierarchy term set. In our scenario, the term set reflects how Contoso has categorized their products, for example one category is called "Laptops" and another is "MP3" players.

  • 在 [產品] 清單中項目的類別] 欄中的內容相關聯產品階層的字詞組中正確的字詞。下列螢幕擷取畫面顯示清單項目台灣視訊 Laptop15.4W M1548的關聯到項目類別] 欄中的字詞的筆記型電腦的方式。In the Products list, content in the Item Category column is associated with the correct term from the Product Hierarchy term set. The following screen shot shows how the list item Southridge Video Laptop15.4W M1548 is associated with the term Laptops through the Item Category column.

項目字詞連線

如此,現在我們 [產品] 清單中有內容下, 一個工作是讓此清單作為目錄。So, now that we have content in the Products list, the next task is to enable this list as a catalog.

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

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

另請參閱See also

概念Concepts

在 SharePoint Server 中設定跨網站發佈Configure cross-site publishing in SharePoint Server