1
00:00:02,432 --> 00:00:05,004
Now that we have seen the theory, let's go

2
00:00:05,004 --> 00:00:08,099
in the lab and see how we can manage hub

3
00:00:08,099 --> 00:00:10,099
navigation. We're now in the lab

4
00:00:10,099 --> 00:00:13,432
environment, and let me open up The Hub,

5
00:00:13,432 --> 00:00:16,132
which is a site that's registered as a hub

6
00:00:16,132 --> 00:00:18,654
site, and Drones at Globomantics, which,

7
00:00:18,654 --> 00:00:22,307
as you can see, is a site associated to

8
00:00:22,307 --> 00:00:24,265
that hub site. First thing that you will

9
00:00:24,265 --> 00:00:27,069
see is here in the global navigation. I

10
00:00:27,069 --> 00:00:32,159
can only edit The Hub navigation from The

11
00:00:32,159 --> 00:00:35,432
Hub site. Even if I have permissions and

12
00:00:35,432 --> 00:00:38,432
the same user, I really can only edit it

13
00:00:38,432 --> 00:00:41,654
from The Hub and not from any sites

14
00:00:41,654 --> 00:00:44,887
associated to The Hub. Also, each site, so

15
00:00:44,887 --> 00:00:48,099
when a user goes on the site, they will

16
00:00:48,099 --> 00:00:51,432
have the global navigation, as well as the

17
00:00:51,432 --> 00:00:54,932
site navigation over here, which needs to

18
00:00:54,932 --> 00:00:58,796
be managed in every site. If I want to add

19
00:00:58,796 --> 00:01:01,971
a link to The Hub nav, I can go here in

20
00:01:01,971 --> 00:01:04,988
Edit. I will click on the plus button. Let

21
00:01:04,988 --> 00:01:09,988
me choose a URL. I will say google.com. I

22
00:01:09,988 --> 00:01:14,766
will go on Google, click on OK, Save, and

23
00:01:14,766 --> 00:01:18,654
now it shows up here. And if I refresh the

24
00:01:18,654 --> 00:01:23,004
page on the site, I will have Google as an

25
00:01:23,004 --> 00:01:25,894
option. Now if I go back on Edit, some

26
00:01:25,894 --> 00:01:29,575
things that I can do is I can also add

27
00:01:29,575 --> 00:01:32,232
links underneath, so either I can add a

28
00:01:32,232 --> 00:01:34,766
URL or a header that doesn't actually have

29
00:01:34,766 --> 00:01:39,432
a link. Let's add here maps.google .com,

30
00:01:39,432 --> 00:01:43,832
and we're going to add Google Maps. I'm

31
00:01:43,832 --> 00:01:47,432
able to go here and make it a sublink

32
00:01:47,432 --> 00:01:50,289
which will sit under Google. So now when

33
00:01:50,289 --> 00:01:53,307
you go on Google, you have the Google Maps

34
00:01:53,307 --> 00:01:56,705
option that appears. I can also change the

35
00:01:56,705 --> 00:02:00,182
way that a navigation is shown by going

36
00:02:00,182 --> 00:02:02,766
into Change the look, then Navigation, and

37
00:02:02,766 --> 00:02:06,099
the options I have are either for it to be

38
00:02:06,099 --> 00:02:11,099
shown as a mega menu or cascading. So you

39
00:02:11,099 --> 00:02:14,099
can really choose the way you want it to

40
00:02:14,099 --> 00:02:17,341
look. Let me do a refresh, and now it

41
00:02:17,341 --> 00:02:20,705
should show it as more of just underneath

42
00:02:20,705 --> 00:02:23,932
instead of a mega menu heading. Now, how

43
00:02:23,932 --> 00:02:26,632
do we add them using PowerShell? To add

44
00:02:26,632 --> 00:02:30,099
them using PowerShell, you first need to

45
00:02:30,099 --> 00:02:33,861
connect by using PnP to The Hub site, and

46
00:02:33,861 --> 00:02:36,432
then you can do an Add-PnPNavigationNode,

47
00:02:36,432 --> 00:02:39,509
give it the location, title, as well as

48
00:02:39,509 --> 00:02:42,766
the URL of the site that you wanted to

49
00:02:42,766 --> 00:02:45,832
link at. So let me run this, and it should

50
00:02:45,832 --> 00:02:49,432
only take a few seconds, and it's done.

51
00:02:49,432 --> 00:02:53,099
Now let me go back in The Hub, and let's

52
00:02:53,099 --> 00:02:56,232
see if it worked, and it didn't. No, it

53
00:02:56,232 --> 00:02:59,032
actually did, but it doesn't seem that

54
00:02:59,032 --> 00:03:01,766
way. That is because when you modify it

55
00:03:01,766 --> 00:03:04,832
through PowerShell, it doesn't refresh the

56
00:03:04,832 --> 00:03:08,646
cache, and that navigation is cache. So

57
00:03:08,646 --> 00:03:10,789
how do I know it worked is when I will

58
00:03:10,789 --> 00:03:13,932
click on Edit, we're actually going to see

59
00:03:13,932 --> 00:03:17,682
HR over here. Simply click on the Save or

60
00:03:17,682 --> 00:03:20,832
on Cancel. That will clear the cache. And

61
00:03:20,832 --> 00:03:24,932
when I refresh it, in this site or inside

62
00:03:24,932 --> 00:03:28,432
the drone site, I'll have the updated

63
00:03:28,432 --> 00:03:31,932
navigation ready for me. I know that

64
00:03:31,932 --> 00:03:34,932
historically SharePoint had a lot more

65
00:03:34,932 --> 00:03:37,432
options to manage global navigation;

66
00:03:37,432 --> 00:03:40,432
however, with hub sites today, everything

67
00:03:40,432 --> 00:03:42,682
is manual, and really the only options

68
00:03:42,682 --> 00:03:45,069
that you have is whether you want to have

69
00:03:45,069 --> 00:03:48,832
it as a mega menu or as a structural

70
00:03:48,832 --> 00:03:52,632
navigation, and everything is managed

71
00:03:52,632 --> 00:03:55,796
manually. So if a site changes URL, you

72
00:03:55,796 --> 00:03:58,705
need to go into the navigation and update

73
00:03:58,705 --> 00:04:01,278
it manually. You can add a link to a site

74
00:04:01,278 --> 00:04:04,032
as we can use before or you cannot use

75
00:04:04,032 --> 00:04:06,849
manage navigation out of the box. You

76
00:04:06,849 --> 00:04:10,182
really have to do a custom solution to

77
00:04:10,182 --> 00:04:13,682
make that happen. This is it for The Hub

78
00:04:13,682 --> 00:04:16,146
navigation demo. Now let's go back to the

79
00:04:16,146 --> 00:04:20,000
slides and talk about managing permissions.

