We are trying to add some ekstra items to the AppBar (Avatar, etc) and the only way we could get this to work is if we use New-UDDrawer and New-UDAppBar but the we cannot get the Drawer to be permanent like when we use NavigationLayour permanent on New-UDPage (the drawer overwrites the AppBar and site content).
Is it instead possible to add New-UDAvatar (and other elements) to New-UDDashboard or New-UDPage as elements in the AppBar?
Did anyone get an answer to this?
I’m currently running 2.6.0 (nightly) with the latest UD framework.
I noticed too that when you use the default appbar (i.e dont specify one) you’ll get an auto generated nav menu, page name, and avatar / logout on the right.
If I then go ahead and use new-udappbar, I can generate my own nav menu with the drawer, I can add an image, pagename etc, but there’s no way to add in the avatar and logout that was displaying previously. @adam Is there a method to do this currently?
If not it would be good to have switches on new-udappbar to use the default drawer and to show/hide the avatar/logout option.
Alternativly, is there a method to logout a user
Really the main use for new-udappbar for me, is simply adding an image and changing the title / nav menu if required for specific pages.
We need to hide the logout for OIDC since we don’t support the logout endpoint. I didn’t realize that was visible for that login type.
As for New-UDAppBar, I haven’t been fond of how that was first implemented since it just replaces the default app bar, as you’ve seen. I think you can just use -Logo and -Title to of New-UDPage to adjust what is in the default nav bar. I’ve started to add additional features to New-UDPage and New-UDDashboard to update the default navbar without having to use New-UDAppBar.
Hey Adam. Is it still in the plans to add more features to the default nav bar without having to use New-UDAppBar? I am wanting to add a dynamic scriptblock to display a new-udlink if there are > 0 error messages in my sql table. Would prefer to use the default if possible.
BTW, I sort of achieved what I wanted with New-UDBadgeLink custom component and then some css to move it over to the right side of the page. However, it will still be very nice to put in the default page app navbar.