SharePoint Server 中受管理導覽的概觀Overview of managed navigation in SharePoint Server

摘要: 了解 SharePoint Server 發佈網站的受管理導覽與導覽詞彙集。Summary: Learn about managed navigation and navigation term sets for SharePoint Server publishing sites.

SharePoint Server 中的受管理導覽功能可讓您為衍生自 SharePoint Server 受管理之中繼資料分類法的發佈網站建置導覽。在 SharePoint Server 2010 中,您預設只能將導覽基於網站的結構。若要基於任何資料結構來建立網站導覽,就必須建立自訂的導覽提供者。透過使用受管理導覽,您可環繞重要的商務概念來設計網站導覽。受管理導覽還可讓您建立「易記 URL」,而無須變更網站的結構。在 SharePoint Server 2010 中,所有發佈網站 URL 都會包含對頁面庫與該頁面庫內任何資料夾的參照 例如 http://contoso.com/Pages/AboutUs.aspx。在 SharePoint Server 2016 和 SharePoint Server 2013 中,您可建立較適合搜尋引擎最佳化 (SEO) 使用且供網站訪客較容易閱讀的 URL 例如 http://contoso.com/AboutUs。SharePoint Foundation 2013 不提供受管理導覽。The managed navigation feature in SharePoint Server enables you to build navigation for a publishing site that is derived from a SharePoint Server managed metadata taxonomy. In SharePoint Server 2010, by default, you could base navigation only on the structure of a site. To create site navigation based on any data structure, you had to create a custom navigation provider. By using managed navigation, you can design site navigation around important business concepts. Managed navigation also lets you create friendly URLs without changing the structure of your site. In SharePoint Server 2010, all publishing site URLs contained a reference to the Pages library and any folders within that library — for example, http://contoso.com/Pages/AboutUs.aspx. In SharePoint Server 2016 and SharePoint Server 2013, you can create URLs that are better for Search Engine Optimization (SEO), and easier for site visitors to read — for example, http://contoso.com/AboutUs. Managed navigation is not available in SharePoint Foundation 2013.

本文說明受管理導覽功能的重要元素、其用途與優點、運作方式、如何將字詞用於其他位置、功能限制,並包含如何將受管理導覽用於發佈網站的範例。This article describes the key elements of the managed navigation feature, its uses and benefits, how it works, how terms can be used in other locations, limitations of the feature, and includes examples of how managed navigation can be used in a publishing site.

如需如何建立用於網站導覽之導覽字詞組的資訊,請參閱<規劃 SharePoint Server 中的導覽字詞組>。For information about how to create the navigation term set that is used for site navigation, see Plan navigation term sets in SharePoint Server.

如需使用受管理導覽時容量與效能考量的資訊,請參閱<評估 Web Content Management 的容量和效能 (SharePoint Server 2013)>。For capacity and performance considerations when using managed navigation, see Estimate capacity and performance for Web Content Management (SharePoint Server 2013)

SharePoint Server 中受管理導覽的元素Elements of managed navigation in SharePoint Server

本節說明與受管理導覽相關的重要概念。This section describes key concepts that are related to managed navigation.

「字詞」是與 SharePoint Server 的項目相關之單字或片語。「字詞組」是相關字詞的集合。受管理導覽用於建置網站導覽的字詞組稱為「導覽字詞組」。如需詳細資訊,請參閱<在 SharePoint Server 中規劃受管理的中繼資料>與<Plan managed metadata (OLD)>。A term is a word or phrase that can be associated with an item in SharePoint Server. A term set is a collection of related terms. The term set that managed navigation uses to build site navigation is called a navigation term set. For more information, see Plan for managed metadata in SharePoint Server and Plan managed metadata (OLD).

導覽字詞組是受管理導覽功能的骨幹。依據預設,當您在發佈網站中建立新頁面時,新的字詞會自動新增至導覽字詞組。例如,當您建立名為「公司歷史」的新頁面時,名為「公司歷史」的字詞會新增至導覽字詞組。您可在 [導覽設定] 頁面選擇關閉自動字詞建立。您也可透過使用字詞庫管理工具,將字詞手動新增至導覽字詞組。如需詳細資訊,請參閱 Office.com 上的<建立與管理字詞組中的字詞>。The navigation term set is the backbone of the managed navigation feature. By default, as you create new pages in your publishing site, new terms are automatically added to the navigation term set. For example, when you create a new page named Company History, a term named Company History is added to the navigation term set. You can choose to turn off automatic term creation on the Navigation Settings page. You can also manually add terms to the navigation term set by using the Term Store Management Tool. For more information, see Create and manage terms in a term set on Office.com.

注意

如果啟用自動字詞建立,只有在您選擇 [設定]**** 功能表上的 [新增頁面]**** 時,才會建立新字詞。若透過使用功能區中 [檔案]**** 索引標籤上的 [新增文件]**** 按鈕來新增頁面,就不會在導覽字詞組中建立新的字詞。If automatic term creation is enabled, a new term will only be created if you choose Add a page on the Settings menu. Adding a page by using the New Document button on the Files tab in the ribbon does not create a new term in the navigation term set.

導覽字詞組中的每個字詞都有易記 URL,可在包含該字詞的內容中載入實體頁面。您可將導覽字詞組中的字詞設定為執行下列其中一項操作︰Each term in a navigation term set has a friendly URL that loads a physical page in the context of that term. Terms in the navigation term set can be configured to do one of the following:

  • 指向相同頁面的其他字詞Point to the same page as other terms

  • 指向每個字詞的唯一頁面Point to a unique page for each term

  • 指向 URL 或只顯示為文字Point to a URL or appear only as text

如果您使用跨網站發佈功能,則必須在製作網站上使用「標記字詞組」,以標記要重複使用的目錄項目。您可合併製作網站中一或多個標記字詞組中的字詞,以在發佈網站中建立單一的自訂導覽字詞組。如需跨網站發佈功能的詳細資訊,請參閱<規劃 SharePoint Server 的跨網站發佈>。If you use cross-site publishing, you must use a tagging term set on the authoring site to tag catalog items for reuse. You can combine terms from one or more tagging term sets in the authoring site to create a single customized navigation term set in the publishing site. For more information about cross-site publishing, see Plan for cross-site publishing in SharePoint Server.

目標網頁、類別頁面及目錄項目頁面Target pages, category pages, and catalog-item pages

「目標網頁」會顯示頁面內容,並與字詞和易記 URL 相關聯。您可變更字詞與任何子系字詞所用的預設目標網頁。Target pages display page content, and are associated with terms and friendly URLs. You can change the default target pages that are used by the term and any child terms.

當您使用跨網站發佈功能時,目標網頁也稱為「類別頁面」。類別頁面是特殊的頁面,會在您將發佈網站連接至目錄時自動建立。您也可手動建立類別頁面。類別頁面會包含「內容搜尋網頁組件」,該網頁組件可使用導覽字詞組中的字詞,查詢並動態顯示與目前的導覽字詞相關之目錄內容。這讓您可重複使用相同頁面,根據頁面訪客所選的相關導覽字詞,顯示不同的內容。例如,假設您使用跨網站發佈功能來顯示目錄中的電子產品。用於顯示使用導覽字詞「照相機」之產品清單的類別頁面,是與用於顯示使用導覽字詞「印表機」之產品清單的相同頁面。如需內容搜尋網頁組件的詳細資訊,請參閱<規劃 SharePoint Server 中供網站間發佈用的製作網站>。When you use cross-site publishing, target pages are also known as category pages. A category page is a special page that can be automatically created when you connect a publishing site to a catalog. You can also create category pages by hand. The category page contains a Content Search Web Part that uses a term from the navigation term set to query for and dynamically display catalog content associated with the current navigation term. This enables you to use the same page repeatedly to display different content, based on the associated navigation term selected by the page visitor. For example, let's say you use cross-site publishing to display electronic products from a catalog. The category page that is used to show a list of products that use the navigation term Cameras is the same page that is also used to display a list of products that use the navigation term Printers. For more information about Content Search Web Parts, see Plan publishing sites for cross-site publishing in SharePoint Server.

「目錄項目頁面」也是在您將發佈網站連接至目錄時可自動建立的特殊頁面。類別頁面會顯示與目前導覽字詞相符的一組字詞 (例如膝上型電腦) ,目錄項目頁面則會傳回單一字詞的詳細資料 (例如,當使用者在膝上型電腦類別頁面上選擇特定型號時)。目錄項目頁面包含「目錄項目重複使用網頁組件」,該網頁組件會使用類別頁面上「內容搜尋網頁組件」所傳回結果中的特定項目 ID,來顯示該項目的詳細資料。該 ID 是當發佈網站連接至目錄時所指定的一組主索引鍵屬性。只有在網站使用跨網站發佈功能且連接至目錄時,才可設定目錄項目頁面。例如,URL http://contoso.com/cameras 可能包含可供購買之照相機型號的清單。如果您按一下個別產品 Contoso 數位相機 M200 的連結,目錄項目頁面就會顯示該指定照相機的特定資訊。與類別頁面類似的是,目錄項目頁面可讓您無須為目錄中每個項目建立不同頁面,即可顯示不同的項目。您可使用相同頁面,但會根據從結果集中所選的項目,顯示不同的內容。A catalog-item page is also a special page that can be automatically created when you connect a publishing site to a catalog. Whereas a category page displays a set of items that match the current navigation term (for example, Laptops), the catalog-item page returns the details for a single item (for example, when a user chooses a specific model on the Laptops category page). The catalog-item page contains a Catalog-Item Reuse Web Part that uses the ID for a specific item that was returned in the results of a Content Search Web Part on a category page to show the details for the item. The ID is the set of primary key properties specified when the publishing site connects to the catalog. Catalog-item pages can be configured only when a site uses cross-site publishing and is connected to a catalog. For example, the URL http://contoso.com/cameras might contain a list of available camera models. If you click the link for the individual product Contoso Digital Camera M200, the catalog-item page displays specific information about that particular camera. Similar to the category page, the catalog-item page enables you to show different items without having to create a different page for each item in the catalog. You use the same page but it shows different content based on the selected item from a result set.

如需類別頁面與目錄項目頁面的詳細資訊,請參閱<SharePoint Server 的跨網站發佈概觀>中的<適用於 SharePoint 跨網站發佈功能的發佈網站集合>。For more information about category pages and catalog-item pages, see "Publishing site collections for SharePoint cross-site publishing" in Overview of cross-site publishing in SharePoint Server.

易記 URLFriendly URLs

易記 URL 是對應於導覽字詞組中字詞的 URL,且提供頁面較短又更有意義的 URL。這讓 URL 對網站訪客更有用,也可改善網站的搜尋引擎最佳化 (SEO)。例如,URL http://www.contoso.com/products/household/vacuum-cleaner 對於使用者與搜尋引擎而言比 URL http://www.contoso.com/Products/Inventory/Pages/productViewer.aspx?productID=115&name=vacuum%20cleaner&CID=34q327234ef 更有意義。依據預設,當您建立新頁面時,會建立新的導覽字詞,也會為該頁面建立對應的易記 URL。您可使用單一易記 URL 指向單一頁面,也可有多個易記 URL 指向相同頁面,例如類別頁面。例如,如果您使用跨網站發佈功能來顯示知識庫的內容,可對 /kb/manuals、/kb/troubleshooting-guides 及 /kb/product-specs 有不同的易記 URL,而都指向相同類別頁面 Category-KB-Articles.aspx。您不一定要使用跨網站發佈功能才能使用多個易記 URL 來指向相同頁面。Friendly URLs are URLs that correspond to a term in the navigation term set, and that provide a shorter, more meaningful URL to a page. This makes the URL more useful to visitors to your site, and also improves search engine optimization (SEO) for your site. For example, the URL http://www.contoso.com/products/household/vacuum-cleaner is more meaningful to both users and search engines than the URL http://www.contoso.com/Products/Inventory/Pages/productViewer.aspx?productID=115&name=vacuum%20cleaner&CID=34q327234ef. By default, when you create a new page, a new navigation term is created, and a corresponding friendly URL is created for the page. You can use a single friendly URL to point to a single page. You can also have multiple friendly URLs that point to the same page, such as a category page. For example, if you use cross-site publishing to display content from a knowledge base, you can have separate friendly URLs for /kb/manuals, /kb/troubleshooting-guides, and /kb/product-specs that all point to the same category page, Category-KB-Articles.aspx. You do not have to use cross-site publishing to use multiple friendly URLs that point to the same page.

全域導覽控制項 (在程式碼片段庫中稱為上方導覽) 是用於顯示網站導覽的主要導覽控制項。全域導覽控制項顯示於預設主版頁面的頁面上方,可根據導覽字詞組中的字詞,顯示一或多層導覽。目前導覽控制項 (在程式碼片段庫中稱為垂直導覽) 是顯示在預設主版頁面中頁面左側的次要導覽控制項。目前導覽可顯示一或多層導覽,根據在全域導覽控制項中所選的字詞,代表導覽字詞組階層的下一層。如需程式碼片段庫的資訊,請參閱 MSDN Library 中的<在 SharePoint Server 2016++ 中將程式碼片段加入至主版頁面或版面配置>。The global navigation control (called Top Navigation in the Snippet Gallery) is the primary navigation control that is used to display the navigation for a site. The global navigation control appears at the top of the page in the default master page, and can show one or more levels of navigation, based on terms in the navigation term set. The current navigation control (called Vertical Navigation in the Snippet Gallery) is a secondary navigation control that appears on the left side of the page in the default master page. Current navigation can show one or more levels of navigation that represent the next level of the navigation term set hierarchy based on the term that is selected in the global navigation control. For information about the Snippet Gallery, see Add snippets to a master page or a page layout in SharePoint Server 2016 in the MSDN Library.

SharePoint Server 中受管理導覽的運作方式How managed navigation works in SharePoint Server

受管理導覽的運作方式是,將導覽字詞組中的字詞與易記 URL 和頁面庫中的頁面建立關聯。依據預設,當建立新頁面時,會在導覽字詞組中建立新字詞,且會設定易記 URL 來指向該頁面。如果您使用的標準發佈網站是採用就地製作發佈模型,這表示在網站中建立的頁面與導覽字詞組中的字詞之間大概是 1:1 的關係。如果網站有許多頁面,管理許多字詞及其對應的頁面可能會變得非常困難。透過使用跨網站發佈功能來顯示一或多個目錄的內容,您只需要使用一些類別與目錄項目頁面,就可在極少的設定與頁面管理下,輕鬆顯示大量資料。透過使用受管理導覽,您就可變更導覽字詞組並將那些變更顯示在網站上,完全不需要新增頁面或變更網站的實體結構與內容。Managed navigation works by associating a term from a navigation term set with a friendly URL and a page in the Pages library. By default, when a new page is created, a new term is created in the navigation term set, and a friendly URL is configured that points to the page. If you are using a standard publishing site that uses the author-in-place publishing model, this means that you'll probably have a 1:1 relationship between pages that are created in the site and terms in the navigation term set. Managing many terms and their corresponding pages can become difficult if your site has many pages. By using cross-site publishing to show content from one or more catalogs, you can use a few category and catalog-item pages to easily display lots of data with minimal configuration and page management. By using managed navigation, you can change the navigation term set and have those changes appear on your site without having to add new pages or change the physical structure of the site and its content.

在您可使用受管理導覽之前,必須先在網站集合的「導覽設定」中加以設定。依據預設,透過使用「發佈入口網站」或「企業 Wiki」網站集合範本所建立的網站集合,都會啟用受管理導覽。而「產品型錄」網站集合範本則使用結構化導覽,因為這是要作為目錄的來源,將與發佈網站共用以進行跨網站發佈。設定受管理導覽時,也會設定其他兩個設定︰會自動將新頁面新增至導覽,並自動為新頁面建立易記 URL。如果您關閉這兩個設定,就不會將新頁面新增至導覽,也沒有新字詞會新增至網站導覽字詞組。Before you can use managed navigation, it must be configured in Navigation Settings on the site collection. By default, managed navigation is enabled for site collections that are created by using the Publishing Portal or the Enterprise Wiki site collection templates. On the other hand, the Product Catalog site collection template uses structural navigation because it is intended to be used as a source for catalogs that will be shared with a publishing site for cross-site publishing. When managed navigation is configured, two additional settings are also configured: new pages are automatically added to navigation, and friendly URLs are automatically created for new pages. If you turn off both settings, new pages will not be added to the navigation, and no new terms will be added to the Site Navigation term set.

注意

若要啟用非發佈網站的受管理導覽,您必須啟動網站集合的「SharePoint Server 發佈基礎結構」功能,並啟動網站的「SharePoint Server 發佈」功能。To enable managed navigation for a non-publishing site, you must activate the SharePoint Server Publishing Infrastructure feature for the site collection, and activate the SharePoint Server Publishing feature for the site.

SharePoint Server 中受管理導覽的用途與優點Use and benefits of managed navigation in SharePoint Server

在任何發佈網站中,只要您希望將網站導覽的結構與網站的結構和內容分隔開來,就應該使用受管理導覽。如果您計劃使用跨網站發佈功能,則可使用嚴格管理的分類法來建立複雜的導覽結構;不然要是每個導覽節點都代表不同的頁面,管理如此的導覽結構就會太過困難又費時。使用跨網站發佈功能時,預設會在發佈網站中啟用受管理導覽。您也可在標準就地製作發佈案例中使用受管理導覽。下表說明建議您使用受管理導覽的可能案例。You should use managed navigation with any publishing site in which you want the structure of the site navigation to be separate from the structure of the site and its content. If you plan to use cross-site publishing, you can use a tightly managed taxonomy to create a complex navigation structure that would otherwise be difficult and time-consuming to manage if each navigation node represented a separate page. When you use cross-site publishing, managed navigation is enabled by default in the publishing site. You can also use managed navigation in a standard author-in-place publishing scenario. The following table describes possible scenarios in which you might want to use managed navigation.

表︰SharePoint 受管理導覽案例Table: SharePoint managed navigation scenarios

案例Scenario 描述Description
網際網路商務網站Internet business site
您可使用跨網站發佈功能來建立網際網路商務網站,其中包含根據中繼資料向客戶顯示產品的目錄。使用者可檢視根據導覽而動態建立的頁面,且可使用其他精簡器來篩選結果。如需詳細資訊,請參閱<在 SharePoint Server 2016 中規劃跨網站發佈網站的搜尋功能>中的<規劃精簡器和多面向導覽>。 You can use cross-site publishing to create an Internet business site that contains a catalog that shows products to customers based on metadata. Users view pages that are created dynamically based on navigation, and users can filter results by using additional refiners. For more information, see "Plan refiners and faceted navigation" in Plan search for cross-site publishing sites in SharePoint Server 2016.
內部網路網站Intranet site
您可以使用跨網站發佈功能,建立內部的人力資源 (HR) 網站,使用受到嚴密管理的導覽結構,來顯示編寫的內容。You can use cross-site publishing to create an internal Human Resources (HR) website that uses a tightly managed navigation structure to show authored content.
網際網路平台服務網站Internet presence site
您可使用就地製作發佈來建立網際網路平台服務網站,其中頁面會自動新增至受管理導覽。內容作者可直接從所建立的頁面來設定導覽屬性。You can use author-in-place publishing to create an Internet Presence site where pages are automatically added to the managed navigation. Content authors can configure navigation properties directly from the pages they create.

SharePoint Server 中受管理導覽的範例Examples of managed navigation in SharePoint Server

本節提供的範例可說明您可如何使用字詞組、標記字詞組及目標網頁,以定義網站導覽階層。This section provides examples of how you can use term sets, tagging term sets, and target pages to define your site's navigation hierarchy.

簡單的受管理導覽Simple managed navigation

在受管理導覽最簡單的形式中,導覽字詞組中的每個字詞都會對應網站中的一個頁面。網站導覽控制項會反映導覽字詞組中字詞的順序與階層。若要變更網站的「結構」,亦即結構顯示在導覽控制項中的方式,您只需重新排列導覽字詞組中的字詞。In the simplest form of managed navigation, every term in the navigation term set corresponds to a page in the site. Site navigation controls reflect the order and the hierarchy of terms in the navigation term set. To change the "structure" of your site — the way the structure appears as displayed in the navigation controls — you simply rearrange terms in the navigation term set.

例如,請考慮以下許多公用網站常用的結構︰頁面最上方水平顯示全域導覽功能表;全域導覽功能表有網站所含最高層級資訊的項目。在此範例中,全域導覽功能表包含下列項目︰For example, consider a structure that's common to many public websites. A global navigation menu is displayed horizontally across the top of the page. The global navigation menu has entries for the highest level of information that's contained on the site. In this example, the global navigation menu contains the following entries:

  • 產品Products

  • 客戶支援Customer support

  • 關於我們About us

頁面左側垂直顯示目前導覽功能表。其中顯示導覽階層的下一層,這是相對於網站訪客目前正在顯示的頁面。如果訪客正在檢視「關於我們」**** 頁面,則目前導覽功能表會顯示下列項目︰The current navigation menu is displayed vertically on the left side of the page. It shows the next level in the navigation hierarchy, relative to whichever page the site visitor is currently viewing. If the visitor is viewing the About us page, then the current navigation menu displays the following entries:

  • 公司歷史Company history

  • 新聞稿Press releases

  • 連絡我們Contact us

您可透過使用受管理導覽,輕鬆實作此導覽階層。導覽字詞組包含下列字詞,按階層排列︰You can easily implement this navigation hierarchy by using managed navigation. The navigation term set contains the following terms, arranged hierarchically:

  • 產品Products

  • 客戶支援Customer support

  • 關於我們About us

    • 公司歷史Company history

    • 新聞稿Press releases

    • 連絡我們Contact us

圖︰導覽字詞組主導導覽控制項Figure: Navigation term set driving navigation controls

主導導覽控制項的導覽字詞組

您會設定導覽字詞組中的每個字詞,以對應要顯示的一個頁面。如果您在建立導覽字詞組之前就建立頁面,甚至可讓字詞自動建立,並讓字詞與頁面之間的對應自動設定。您也可自訂控制項的外觀 例如,要顯示多少層的導覽階層。若要變更網站的結構,您可重新排列導覽字詞組中的字詞,導覽控制項就會自動顯示新的結構。You configure each term in the navigation term set to correspond to a page to display. If you create the pages before you create the navigation term set, you can even have the terms created automatically and the correspondence between terms and pages set up automatically. You can also customize the appearance of the controls themselves — for example, how many levels of the navigation hierarchy to display. To change the structure of your website, you can reorder terms in the navigation term set, and the navigation controls will automatically display the new structure.

字詞的屬性會影響導覽控制項中字詞的外觀與行為。例如,您可將「客戶支援」字詞的標題變更為「客戶協助」,導覽控制項將會使用新的用語,但當使用者選取 [客戶協助]**** 時,還是會顯示相同頁面。您可修改導覽字詞的屬性來控制字詞如何顯示、字詞是否應包含於全域控制項與目前導覽控制項、當網站訪客暫留在導覽功能表的字詞時會顯示什麼文字等等。Attributes of the terms influence the appearance and behavior of items in the navigation controls. For example, you can change the title of the "Customer support" term to "Customer assistance," and the navigation controls will use the new wording, but still display the same page when the user selects Customer assistance. You can modify attributes of navigation terms to control how the term is displayed, whether the term should be included in the global navigation control and the current navigation control, what text is displayed when a site visitor hovers over the term in a navigation menu, and so on.

目錄與字詞導向頁面Catalogs and term-driven pages

跨網站發佈功能只適用於 SharePoint Server Enterprise。如果您的網站使用跨網站發佈功能,則可將一或多個標記字詞組與發佈網站建立關聯。您可指定標記字詞組的哪個部分 (在製作網站上) 要新增至導覽字詞組 (在發佈網站上)。如需跨網站發佈功能與標記字詞組的詳細資訊,請參閱<SharePoint Server 的跨網站發佈概觀>。Cross-site publishing is available only in SharePoint Server Enterprise. If your site uses cross-site publishing, then you can associate one or more tagging term sets with the publishing site. You specify which part of the tagging term set (on the authoring site) to add to the navigation term set (on the publishing site). For more information about cross-site publishing and tagging term sets, see Overview of cross-site publishing in SharePoint Server.

您可透過「固定」或「重複使用」標記字詞來新增標記字詞。固定字詞基本上是連結。如果您變更標記字詞組中的字詞,變更也會套用至導覽字詞組中該固定字詞。您可以只固定字詞,也可固定字詞及其所有的子字詞。重複使用的字詞基本上是複本。標記字詞與重複使用的導覽字詞之間不會保持關聯性。You can add tagging terms either by pinning them or by reusing them. A pinned term is essentially a link. If you change the term in the tagging term set, the changes also apply to the pinned term in the navigation term set. You can pin only a term, or you can pin a term and all of its sub-terms. A reused term is essentially a copy. No association is maintained between the tagging term and the reused navigation term.

回到此範例,假設發佈網站使用跨網站發佈功能。有製作網站擁有標記字詞組,其字詞的階層如下︰Returning to the example, assume that the publishing site uses cross-site publishing. There is an authoring site that has a tagging term set with the following hierarchy of terms:

  • 照相機Cameras

    • 數位Digital

    • 底片Film

  • 電腦Computers

    • 筆記型電腦Laptop

    • 遊戲Gaming

    • 高效能High-performance

    • 極輕巧Ultra-light

    • 平板裝置Slate

    • 桌上型電腦Desktop

  • 印表機Printers

    • 噴墨Inkjet

    • 雷射Laser

製作網站上的清單會作為所有可供購買產品的目錄。清單中的項目會以標記字詞組中的字詞加以標記。A list on the authoring site is used as a catalog of all available products. Items in the list are tagged with terms from the tagging term set.

如果您將標記字詞組的根固定至導覽字詞組,並修改全域導覽控制項來顯示雙層導覽,則全域導覽功能表仍會顯示下列項目︰If you pin the root of the tagging term set to the navigation term set, and modify the global navigation control to display two levels of navigation, then the global navigation menu will still display the following entries:

  • 產品Products

  • 客戶支援Customer support

  • 關於我們About us

此外,全域導覽功能表中的 [產品]**** 功能表項目會展開並顯示下列功能表項目︰Furthermore, the Products menu item in the global navigation menu will expand to show the following menu items:

  • 照相機Cameras

  • 電腦Computers

  • 印表機Printers

如果網站訪客在全域導覽功能表上選取 [照相機]**** 項目,則目前導覽控制項會顯示下列項目︰If a visitor to the site selects the Cameras entry on the global navigation menu, then the current navigation control displays the following entries:

  • 數位Digital

  • 影片Film

代表此結構的導覽字詞組如下︰The navigation term set that represents this structure is the following:

  • 產品Products

    • 相機Cameras

    • 數位Digital

    • 底片Film

    • 電腦Computers

    • 筆記型電腦Laptop

    • 遊戲Gaming

    • 高效能High-performance

    • 極輕巧Ultra-light

    • 平板裝置Slate

    • 桌上型電腦Desktop

    • 印表機Printers

    • 噴墨Inkjet

    • 雷射Laser

  • 客戶支援Customer support

  • 關於我們About us

    • 公司歷史Company history

    • 新聞稿Press releases

    • 連絡我們Contact us

圖︰標記字詞組主導導覽字詞組Figure: Tagging term set driving navigation term set

主導導覽字詞組的標記字詞組

當網站訪客導覽至 [產品]**** 底下的節點時,系統會自動產生頁面來顯示下列資訊︰When a visitor to the site navigates to a node under Products, a page is automatically generated that shows the following information:

  • 如果該字詞有子字詞,頁面會顯示子類別。例如,對應字詞「照相機」的頁面會顯示「數位」與「影片」類別。If the term has sub-terms, the page displays sub-categories. For example, the page that corresponds to the term Cameras displays the categories for Digital and Film.

  • 如果該字詞沒有子字詞,頁面會顯示以該字詞標示的項目。例如,對應字詞「數位」的頁面會顯示以「數位」標示的項目。If the term has no sub-terms, the page displays items that are tagged with the term. For example, the page that corresponds to the term Digital displays items that are tagged with "Digital."

您可透過設定導覽字詞組中字詞的屬性,定義所產生的頁面。您可為每個字詞指定下列屬性的值︰You define the page that is generated by setting attributes on the term in the navigation term set. You can specify values for the following attributes for each term:

  • 易記 URL 當使用者檢視頁面時,易記 URL 會顯示在瀏覽器的網址列。它很有可能是父系字詞的易記 URL 再附加尾碼。例如,如果「照相機」字詞的易記 URL 是 "www.contoso.com/cameras",則「影片」字詞的易記 URL 可能是 "www.contoso.com/cameras/film"。A friendly URL The friendly URL is displayed in the browser's address bar when the user views the page. It is most likely a suffix that is appended to the parent term's friendly URL. For example, if the friendly URL for the Cameras term is "www.contoso.com/cameras," the friendly URL for the Film term could be "www.contoso.com/cameras/film."

  • 目標網頁 這是存取易記 URL 時所載入的頁面。字詞可與其父系字詞使用相同的目標網頁,或可覆寫父系的目標網頁並指定不同的目標網頁。如果您指定新的目標網頁,還可指示目前字詞的所有子系字詞都應使用該目標網頁 (除非子系字詞覆寫其父系的目標網頁)。A target page This is the page that loads when the friendly URL is accessed. A term can use the same target page as its parent term, or you can override the parent's target page and specify a different one. If you specify a new target page, you can also indicate that it should be used by all child terms of the current term (unless a child term overrides its parent's target page).

  • 目錄項目頁面 當網站訪客檢視有標記字詞的項目時,這是所呈現的頁面。例如,「影片」字詞的目標網頁可能會顯示所有影片照相機的影像與簡短說明,而「影片」字詞的目錄項目頁面則會顯示所選特定照相機的影像,搭配詳細的產品規格。字詞可與其父系字詞使用相同的目錄項目頁面,或可覆寫父系的目錄項目頁面並指定不同的目錄項目頁面。如果您指定新的目錄項目頁面,還可指示目前字詞的所有子系字詞都應使用該目錄項目頁面 (除非子系字詞覆寫其父系的目錄項目頁面)。A catalog item page This is the page that is rendered when a site visitor views an item that is tagged with the term. For example, the target page for the Film term might display images and brief descriptions of all film cameras, whereas the catalog item page for the Film term would display an image of the specific camera that was selected, along with detailed product specifications. A term can use the same catalog item page as its parent term, or you can override the parent's catalog item page and specify a different one. If you specify a different catalog item page, you can also indicate that it should be used by all child terms of the current term (unless the child term overrides its parent's catalog item page).

使用其他字詞組中的字詞Using terms in other term sets

當您使用跨網站發佈功能時,有兩種方法可使用製作網站集合的字詞作為發佈網站集合中的導覽字詞︰固定字詞或重複使用字詞。When you use cross-site publishing, there are two ways to use terms from an authoring site collection as navigation terms in a publishing site collection: you can pin terms or reuse terms.

當您將製作網站集合中標記字詞組的字詞固定至發佈網站集合的網站導覽中時,該字詞會與發佈網站集合中的導覽字詞組共用。您對製作網站集合中的原始字詞做出的任何變更,都會反映在所有固定字詞的位置。您無法在固定字詞所在之發佈網站集合中變更該字詞的一般設定。也無法對發佈網站集合的該字詞新增共用屬性。不過,可對該字詞新增本機屬性。您可固定單一字詞,或可固定字詞及其所有子系字詞。When you pin a term from a tagging term set in an authoring site collection into the site navigation of a publishing site collection, that term is shared with the navigation term set in the publishing site collection. Any changes that you make to the original term in the authoring site collection will be reflected anywhere that term is pinned. You can't change the general settings for a term in the publishing site collection where the term is pinned. You also can't add shared properties to the term from the publishing site collection. However, you can add local properties to the term. You can pin a single term, or you can pin a term with all its child terms.

當您將製作網站集合中標記字詞組中的字詞重複使用在發佈網站的網站導覽中時,該字詞會複製到發佈網站集合中的導覽字詞組,而且不會保持與原始字詞的關聯性。您對製作網站集合中的原始字詞做出的任何變更,都不會反映在該字詞之任何重複使用的複本上。您可在發佈網站集合中變更重複使用之字詞的一般設定。也可將共用與本機屬性新增至發佈網站集合中的該字詞。您可重複使用單一字詞,或重複使用字詞及其所有子系字詞。When you reuse a term from a tagging term set in an authoring site collection into the site navigation of a publishing site, that term is copied to the navigation term set in the publishing site collection and no association with the original term is maintained. Any changes that you make to the original term in the authoring site collection are not made on any reused copies of the term. You can change the general settings for the reused term in the publishing site collection. You can also add both shared and local properties to the term from the publishing site collection. You can reuse a single term, or a term with all its child terms.

SharePoint Server 中受管理導覽的限制Limitations of managed navigation in SharePoint Server

因為受管理導覽使用字詞組來建置網站導覽,所以有著與其他任何字詞組相同的限制︰Because managed navigation uses term sets to build the site navigation, it has the same limitations as any other term set:

  • 對字詞沒有版本控制。一旦變更字詞,之後就無法再將變更還原至字詞的舊版。There is no version control on terms. If you make a change to a term, you can't later revert the change back to an earlier version of the term.

  • 對字詞沒有發佈工作流程。您一變更字詞,導覽就會顯示變更的字詞。如果您使用跨網站發佈功能,這也表示當新字詞新增至導覽字詞組時,在搜尋對相關內容編制索引之前,就可在發佈網站上的導覽中看見該字詞。您可選擇直到內容發佈並由搜尋編制索引之前,在導覽中隱藏字詞。There is no publishing workflow on terms. As soon as you make a change to a term, it will appear in the navigation with the change. If you are using cross-site publishing, this also means that when a new term is added to the navigation term set, the term itself may be visible in the navigation on the publishing site before the associated content is indexed by search. You can choose to hide terms from the navigation until the content is published and indexed by search.

另請參閱See also

概念Concepts

規劃 SharePoint Server 中的導覽字詞組Plan navigation term sets in SharePoint Server

在 SharePoint Server 中規劃受管理的中繼資料Plan for managed metadata in SharePoint Server

SharePoint Server 的跨網站發佈概觀Overview of cross-site publishing in SharePoint Server

規劃 SharePoint Server 中跨網站發佈用的製作網站Plan authoring sites for cross-site publishing in SharePoint Server

規劃 SharePoint Server 中供網站間發佈用的製作網站Plan publishing sites for cross-site publishing in SharePoint Server

評估 Web Content Management 的容量和效能 (SharePoint Server 2013)Estimate capacity and performance for Web Content Management (SharePoint Server 2013)

其他資源Other Resources

Plan managed metadata (OLD)Plan managed metadata (OLD)