官术网_书友最值得收藏!

Modifying the top navigation

When you create a new Communication site or register a site as a hub, SharePoint also creates a navigation menu toward the top of the site. You can use the Global Navigation menu to help your site's users quickly browse to different areas in your site.

In this recipe, we will learn how to modify the Global Navigation in a site in order to add a new header and sublink menu items.

Getting ready

You will need either the Edit, Design,or Full Controlpermission level in your site to be able to modify the Global Navigation. The site you will be modifying should either be a Communication site or designated hub site.

How to do it...

To change the Global Navigation in your site, follow these steps:

Browse to any page within the site.

Click the Editlink toward the end of the top navigation bar, as shown in the following screenshot:

This results in the Global Navigation opening up in Edit mode. Position the mouse cursor below an existing item where you would like to add the new menu item.

Click the + sign and then select the Header option from the Choose an option drop down, as shown in the following screenshot:

Give your menu a Display name and then click the OK button. This will result in a new Header being created.

To add a link underneath the newly created Header item, position the mouse cursor directly below it.

Click the + sign and then selectURLfrom theChoose an option drop down.

Enter values for the Address and Display name text boxes, as shown in the following screenshot:

Click the OKbutton to save your URL.

Click the three dots next to your newly added link menu.

Click the Make sub link menu option, as shown in the following screenshot:

Then, click the Save button to save your changes.

Congratulations! You just added new navigation items to your Global Navigation.

How it works...

Communication and hub sites are typically used in communication or intranet type scenarios, where users are likely to be presented with content from across multiple pages and/or sites. Such sites are typically designed so that users can easily get to the content they are looking for. This is typically done through an enriched search experience. Even then, users typically start looking for content using the top navigation. Creating a robust cross-site Global Navigation in such scenarios aides the user experience by helping users quickly browse to the information they are specifically looking for.

There's more...

SharePoint lets you create the Global Navigation menu using two different widely accepted styles. We will discuss these here.

Cascading menu and Megamenu

SharePoint lets Global Navigation to be styled as either Cascading menus or Mega menus. A cascading menu uses the classic multi-level navigation to help you display your navigation hierarchy using multiple sub-level menus, as shown in the following screenshot:

On the other hand, the Mega menuoption, which was recently introduced in SharePoint, lets you display multiple levels of navigation without you having to go through the various flyouts shown in the following screenshot:

You can switch between either of these menu styling options through the Change the look setting, which was described earlier as part of the Changing the look recipe.

See also...

The Audience targeting topic of the Adding a web part recipe, earlier in this chapter

主站蜘蛛池模板: 永顺县| 远安县| 称多县| 淮南市| 泾源县| 个旧市| 锦州市| 武穴市| 彰化市| 宜丰县| 伊金霍洛旗| 易门县| 宜丰县| 惠水县| 页游| 高密市| 勃利县| 乌什县| 林西县| 平江县| 义乌市| 崇文区| 江源县| 巩义市| 紫阳县| 澄城县| 惠州市| 息烽县| 通道| 广宁县| 榕江县| 凤凰县| 墨竹工卡县| 揭阳市| 绥中县| 凌源市| 普兰店市| 漳州市| 临沂市| 太仆寺旗| 盘锦市|