Now that we have seen the theory, let's go
in the lab and see how we can manage hub
navigation. We're now in the lab
environment, and let me open up The Hub,
which is a site that's registered as a hub
site, and Drones at Globomantics, which,
as you can see, is a site associated to
that hub site. First thing that you will
see is here in the global navigation. I
can only edit The Hub navigation from The
Hub site. Even if I have permissions and
the same user, I really can only edit it
from The Hub and not from any sites
associated to The Hub. Also, each site, so
when a user goes on the site, they will
have the global navigation, as well as the
site navigation over here, which needs to
be managed in every site. If I want to add
a link to The Hub nav, I can go here in
Edit. I will click on the plus button. Let
me choose a URL. I will say google.com. I
will go on Google, click on OK, Save, and
now it shows up here. And if I refresh the
page on the site, I will have Google as an
option. Now if I go back on Edit, some
things that I can do is I can also add
links underneath, so either I can add a
URL or a header that doesn't actually have
a link. Let's add here maps.google .com,
and we're going to add Google Maps. I'm
able to go here and make it a sublink
which will sit under Google. So now when
you go on Google, you have the Google Maps
option that appears. I can also change the
way that a navigation is shown by going
into Change the look, then Navigation, and
the options I have are either for it to be
shown as a mega menu or cascading. So you
can really choose the way you want it to
look. Let me do a refresh, and now it
should show it as more of just underneath
instead of a mega menu heading. Now, how
do we add them using PowerShell? To add
them using PowerShell, you first need to
connect by using PnP to The Hub site, and
then you can do an Add-PnPNavigationNode,
give it the location, title, as well as
the URL of the site that you wanted to
link at. So let me run this, and it should
only take a few seconds, and it's done.
Now let me go back in The Hub, and let's
see if it worked, and it didn't. No, it
actually did, but it doesn't seem that
way. That is because when you modify it
through PowerShell, it doesn't refresh the
cache, and that navigation is cache. So
how do I know it worked is when I will
click on Edit, we're actually going to see
HR over here. Simply click on the Save or
on Cancel. That will clear the cache. And
when I refresh it, in this site or inside
the drone site, I'll have the updated
navigation ready for me. I know that
historically SharePoint had a lot more
options to manage global navigation;
however, with hub sites today, everything
is manual, and really the only options
that you have is whether you want to have
it as a mega menu or as a structural
navigation, and everything is managed
manually. So if a site changes URL, you
need to go into the navigation and update
it manually. You can add a link to a site
as we can use before or you cannot use
manage navigation out of the box. You
really have to do a custom solution to
make that happen. This is it for The Hub
navigation demo. Now let's go back to the
slides and talk about managing permissions.