Sub ConnectNavigationBar(page As ABMPage, usertype as String) ' added this usertype param - determined at the page level - optional!
' Clear the dummies we created in BuildNavigationBar
page.NavigationBar.Clear
if usertype = 'admin' then
page.NavigationBar.AddSideBarItem( "About", "About / Help", "mdi-action-dashboard", "../AboutPage")
page.NavigationBar.AddSideBarDivider '("")
page.NavigationBar.AddSideBarItem( "Reports", "System Reports", "mdi-file-folder-open", "../reportsPage")
else
' do something else '
end if
' OR
Select usertype
case admin
' build admin menu'
case user
' build user menu'
case public
' build public non-user menu - very limited options '
end case