This component extends FwNav. It retains all the basic features of the navigation implemented by FwNav
, but it also changes depending upon whether the user is authenticated
or not. If the session is authenticated and the user has roles within the app, FwGcNav
will yield what is passed into it into the FwNav
component. If however, the session is authenticated and the user has no roles, the only page which will be displayed
in the navigation is Index. If the session has not been authenticated, the Login page will be the only page displayed in the navigation bar. For more information about the login page, click here.
The usage of FwGcNav
is identical to FwNav
:
<FwGcNav>
<ul>
<li>
<LinkTo @route="myPage">My Page</LinkTo>
</ul>
</FwGcNav>