SharePoint Server 中的網站導覽概觀Overview of site navigation in SharePoint Server

摘要:了解 SharePoint Server 2016 和 SharePoint 2013 中可用的導覽控制項類型。Summary: Learn about the types of navigation controls that are available in SharePoint Server 2016 and SharePoint 2013.

網站導覽是網站集合中的控制項和連結集合,網站和頁面會協助將使用者導向所在的位置,以及協助他們輕易地前往相關位置。例如,您可以設定網站導覽以協助使用者前往網站集合中的其他網站,或者可以進行設定,根據使用者尋找的內容,動態產生上方導覽和垂直導覽控制項。規劃良好的網站導覽策略可以讓 SharePoint Server 網站更易於使用。Site navigation are the sets of controls and links in your site collections, sites and pages that help orient users to where they are and help them easily get to other relevant locations. For example, you can configure site navigation to help users get to other sites in the site collection or you can configure it so that the top navigation and the vertical navigation controls are dynamically generated based on context of what the user is looking at. A well planned site navigation strategy make SharePoint Server sites easier to use.

SharePoint Server 具有許多功能,這些功能使用搜尋技術以提供方法讓網站擁有者在網頁上動態顯示內容。如需搜尋導向網站的詳細資訊,請參閱規劃 SharePoint Server 的跨網站發佈SharePoint Server has many features that use search technology to provide site owners with ways to display content dynamically on web pages. For more information about search-driven sites, see Plan for cross-site publishing in SharePoint Server.

導覽控制項可以顯示在主版頁面、頁面版面配置,以及使用網頁組件區域,直接顯示在網頁內容中。Navigation controls can be displayed on master pages, page layouts, and — by using Web Part zones — directly in a page's content.

根據預設,SharePoint Server 的導覽模型是根據網站集合的階層式結構。您可以使用導覽功能將任何網站連結至階層中的任何其他網站,以及這些網站中的頁面。此外,您可以建立任意位置的連結,例如外部網站的連結。By default, SharePoint Server bases its navigation model on the hierarchical structure of the site collection. By using the navigation features, you can link any site to any other in the hierarchy and to pages in those sites. Additionally, you can create links to arbitrary locations, such as to an external website.

受管理導覽 - 當您使用受管理導覽時,會建立字詞組來代表導覽階層,導覽控制項會顯示該字詞組的資料。您可以藉由變更字詞組來變更導覽階層。如需詳細資訊,請參閱< SharePoint Server 中受管理導覽的概觀>。受管理導覽預設在所有網站範本中為停用,「發佈入口網站」網站集合範本例外。Managed Navigation - When you use managed navigation, you create a term set that represents the navigation hierarchy, and navigation controls display data from the term set. You can change the navigation hierarchy by changing the term set. For more information, see Overview of managed navigation in SharePoint Server. Managed navigation is disabled by default in all site templates except the Publishing Portal site collection template.

導覽連結受限於安全性調整。這表示如果網站使用者沒有連結的目的 SharePoint Server 網站或頁面的權限,則該連結不會顯示。手動新增至導覽的頁面、網站及連結可以設定為僅供特定對象的成員使用。不是該對象成員的使用者無法看見以該對象為目標的網站和頁面連結。Navigation links are subject to security trimming. This means that if a site user does not have permissions to the destination SharePoint Server site or page of the link, then that link is not displayed. Pages, sites, and links that are manually added to navigation can be configured to be available only to members of a particular audience. Users who are not members of that audience cannot see links to sites and pages that are targeted to that audience.

常見的導覽控制項Common Navigation Controls

主版頁面會定義網站中網頁的外部框架。主版頁面包含您要網站中的所有頁面共用的元素 (例如品牌資訊)、通用命令 (例如 Search),以及在整個網站都可以使用的導覽元素。主版頁面通常包含上方導覽控制項 (連結顯示於下拉式功能表) 和垂直導覽控制項。A master page defines the outer frame of the web pages in a site. Master pages contain the elements that you want all pages in your site to share, such as branding information; common commands, such as Search; and navigation elements that you want to be available throughout the site. A master page often includes the top navigation control (where links are presented on drop-down menus) and the vertical navigation control.

您可以使用設計管理員以及您選擇的 HTML 編輯器,將自己的自訂樣式套用至這些巡覽控制項。You can apply your own custom styles to these navigation controls by using Design Manager and an HTML editor of your choice.

上方連結列控制項會顯示在網站階層中比目前網站低一層之網站的連結。通常上方連結列顯示在網站的每個頁面上方。根據預設,比目前網站低一層的所有網站會新增至上方導覽,每個網站都有自己獨特的上方導覽。網站擁有者可以自訂特定網站的上方導覽。The Top link bar control displays links to the sites that are one level below the current site in a site hierarchy. It is common for the top link bar to appear at the top of each page in a site. By default, all sites that are one level below the current site are added to the top navigation, and each site has its own unique top navigation. Site owners can customize the top navigation for a specific site.

網站擁有者可以選擇從父網站繼承上方導覽。此方法可以讓使用者在網站集合中的任何位置從某個網站切換至另一個網站,作法是允許上方導覽在網站集合中的所有網站中保持相同。例如,用於行銷組織產品的網際網路網站可以每個產品系列各具有一個網站。在每個網站的上方導覽中顯示每個產品的網站,網站設計者可以使用此方式讓使用者輕易地從某個網站切換到其他網站,不需要返回網站首頁。Site owners can choose to inherit the top navigation from the parent site. This approach allows users to switch from one site to another from anywhere within the site collection, by allowing the top navigation to stay the same in all the sites in the site collection. For example, an Internet site that is used to market an organization's products could have a site for each line of its products. By displaying each product's site in the top navigation of each site, site designers can make it possible for users to easily switch from one site to another without having to return to the site home page.

其他上方導覽設定功能包括下列項目:Other top navigation configuration features include the following:

  • 僅連結至 SharePoint Server 中所有最上層網站的網頁Linking to the web pages of all the top-level sites in SharePoint Server only

  • 連結至指定的外部網站Linking to specified external sites

  • 連結至網站中任意位置的指定網站或頁面Linking to specified sites or pages that are anywhere in the site.

  • 僅限在 SharePoint Server 中於標題底下組織連結。Organizing links under headings in SharePoint Server only.

  • 手動排序上方連結列的項目Manually sorting the items on the top link bar

  • 限制僅限 SharePoint Server 中全域導覽層級顯示的項目數上限。Restricting the maximum number of items to show at the global navigation level in SharePoint Server only

所有的上方連結列功能,例如連結至外部網站,可以定義為唯一的每個網站。如果您是在最上層網站上,您可以新增、 移動或重新排列依序按一下 [編輯連結的連結All top link bar features, such as linking to external sites, can be defined uniquely for each site. If you are on a top level site, you can add, move or rearrange the links by clicking EDIT LINKS

另外,您可以使用設計管理員,僅在 SharePoint Server 的上方連結列自訂外觀和功能。By using Design Manager you can additionally customize the appearance and functionality of the top link bar in SharePoint Server only.

快速啟動Quick Launch

快速啟動通常會強調目前網站的重要內容,例如清單和文件庫。它通常會顯示在網站每個頁面的左側。Quick launch typically highlights the important content in the current site, such as lists and libraries. It is common for it to appear on the left of each page in a site.

快速啟動設定功能包含下列項目:Quick launch configuration features include the following:

  • 連結至位於與僅限 SharePoint Server 中目前網站相同網站階層層級的網站。Linking to sites that are on the same level of the site hierarchy as the current site in SharePoint Server only

  • 連結至特定外部網站或目前網站的頁面。Linking to specific external sites or to pages in the current site

  • 在標題底下組織連結。Organizing links under headings.

  • 手動排序 [快速啟動] 中的項目。Manually sorting the items in Quick Launch

  • 限制僅限 SharePoint Server 中導覽層級顯示的項目數上限。Restricting the maximum number of items to show at the navigation level in SharePoint Server only

如果您想要新增、 移除或重新排列的連結,按一下 [編輯連結的垂直導覽中。您也可以新增、 移除、 重新排列連結或建立的網站 」 網站設定] 中新增標題。若要啟用或停用 [快速啟動] 中,按一下右上角的齒輪圖示然後按一下 [網站設定]。[外觀與風格] 區域中按一下 [樹狀檢視中,然後再選取 [啟用快速啟動] 核取方塊。If you want to add, remove, or rearrange the links, click EDIT LINKS in the vertical navigation. You can also add, remove, rearrange links or create new headings in Site Settings for the site. To enable or disable Quick Launch, click the gear icon in the upper-right corner and then click Site Settings. In the Look and Feel area, click Tree view, and then select the Enable Quick Launch check box.

如同您可以自訂上方導覽,您也可以自訂垂直導覽的外觀和功能,方法是使用 SharePoint Server 中的設計管理員。Just as you customize top navigation, you can also customize the appearance and functionality of vertical navigation by using Design Manager in SharePoint Server.

樹狀檢視Tree view

樹狀檢視會顯示在頁面的左邊。如果您已啟用快速啟動和樹狀檢視,樹狀檢視會顯示在快速啟動底下。樹狀檢視會顯示網站內容,例如清單、文件庫及在階層結構中的目前網站。Tree view appears on the left side of the page. If you have enabled Quick launch and Tree view, Tree view will appear below Quick launch. Tree view displays site content, such as lists, libraries, and sites that are in the current site, in a hierarchical structure.

根據預設,樹狀檢視導覽已關閉。若要啟用樹狀檢視中,按一下右上角的齒輪圖示然後按一下 [網站設定]。[外觀與風格] 區域中按一下 [樹狀檢視中,然後再選取 [啟用樹狀檢視中核取方塊。By default, tree view navigation is turned off. To enable tree view, click the gear icon in the upper-right corner and then click Site Settings. In the Look and Feel area, click Tree view, and then select the Enable Tree View check box.

中繼資料導覽Metadata navigation

中繼資料導覽會在樹狀檢視導覽中顯示文件庫和清單內容的相關中繼資料,讓使用者根據指定欄位篩選文件庫或清單內容。網站管理員可以使用 [中繼資料導覽設定] 頁面針對清單或文件庫設定中繼資料導覽,以設定使用者可用的導覽階層和索引鍵篩選。中繼資料導覽只會在使用者檢視已設定中繼資料導覽的清單或文件庫時顯示。Metadata navigation displays metadata about library and list content in the tree view navigation, and lets users filter library or list content based on specified fields. Site administrators can configure metadata navigation by using the Metadata Navigation Settings page for a list or library to configure the navigation hierarchies and key filters that are available to users. Metadata navigation is displayed only when a user views the list or library for which metadata navigation was configured.

受管理導覽Managed navigation

受管理導覽可讓您使用字詞組來定義及維護網站上的導覽。此方法可對現有基於網站結構的 SharePoint 導覽進行補充。透過將字詞新增至「字詞儲存管理」工具中的字詞組,建立受管理導覽結構。您可以複製導覽字詞組並將其翻譯成不同標籤使用的相應語言。如需詳細資訊,請參閱<SharePoint Server 中受管理導覽的概觀>。Managed navigation enables you to define and maintain the navigation on your site by using term sets. This method supplements the existing SharePoint navigation based on site structure. You create the managed navigation structure by adding terms to the navigation term set in the Term Store Management tool. You can copy the navigation term set and translate it into the same languages that are used for variations labels. For more information, see Overview of managed navigation in SharePoint Server.

網頁組件是作者可以插入頁面上的網頁組件區域並且進行設定的控制項。摘要連結、目錄、內容查詢及內容搜尋控制項皆有網頁組件,頁面作者可將其插入頁面的網頁組件區域。網頁組件具有與相關的控制項相同的功能。但是,它們可以在插入頁面時進行設定,而不用在網站設計者將其插入頁面版面配置時進行設定。若要讓導覽網頁組件可供頁面作者插入頁面,可以在頁面版面配置納入一或多個網頁組件區域,或者可以在頁面納入 RTF 編輯器控制項,如此可讓使用者直接將網頁組件新增至 RTF 編輯器網頁組件。A Web Part is a control that authors can insert into a Web Part zone on a page and configure. The Summary Links, Table of Contents, Content Query, and Content Search controls each have Web Part counterparts that page authors can insert into Web Part zones on pages. The Web Parts have the same configuration features and the same functionality as their related controls. However, they can be configured when they are inserted on the page instead of when the site designer inserts them on the layout of the page. To make navigation Web Parts available for page authors to insert on a page, you can include one or more Web Part zones on a page layout, or you can include a Rich Text Editor control on a page, which will allow users to add Web Parts directly to the Rich Text Editor Web Part.

下列導覽網頁組件僅適用於非發佈網站:The following navigation Web Parts are available only for non-Publishing sites:

  • 內容彙總 - 類別 顯示網站目錄的類別Content Rollup - Categories Displays categories from the Site Directory

  • 內容彙總 - 網站彙總工具 顯示您選擇的網站。Content Rollup - Site Aggregator Displays sites of your choice.

  • 內容彙總 - 類別中的網站 顯示特定類別中網站目錄的網站。Content Rollup - Sites in Category Displays sites from the Site Directory in a specific category.

  • 社交共同作業 - 標記雲 顯示組織內標記的最熱門主題。Social Collaboration - Tag Cloud Displays the most popular subjects being tagged inside your organization.

如果您讓作者可以在頁面上插入導覽網頁組件,就會減少網站導覽具備的控制項,因為作者可以控制網站使用者的導覽體驗。這對於鬆散管理的環境非常適合,例如組織的共用作業網站,在這些網站中個別作者必須能夠將使用者指向作者工作相關的內容。而對於較嚴謹控管的環境則不甚適合,例如網際網路形象網站,在這些網站中導覽體驗有一致的規劃和實作,由網站設計者和規劃員控制。If you make it possible for authors to insert navigation Web Parts on pages, you reduce the control that you have over your site's navigation because authors can then control part of the navigation experience of site users. This might be appropriate in a loosely controlled environment, such as a collaboration site in an organization, where individual authors must be able to point users to content that is related to the author's work. It is less appropriate in a more tightly controlled environment, such as an Internet presence site, in which the navigation experience is planned and implemented in a consistent, controlled way by the site designers and planners.

注意

[!附註] 如果您要在頁面版面配置納入網頁組件區域,但是防止作者將導覽網頁組件插入這些區域,可以變更使用網站網頁組件庫中導覽網頁組件的必要權限,讓作者基於其權限層級無法使用這些網頁組件。If you want to include Web Part zones on page layouts but prevent authors from inserting navigation Web Parts into these zones, you can change the permissions that are required to use navigation Web Parts in the Web Parts gallery of your site to make those Web Parts unavailable to authors based on their permission level.

另請參閱See also

概念Concepts

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

在 SharePoint Server 中管理網頁組件Manage web parts in SharePoint Server