Last post Apr 24, 2006 11:34 PM by locopon
Apr 22, 2006 08:44 AM|Amek|LINK
I would like to create my own navigation / manu module instead of the solpart module.
To do this I would like to get the collection over logged in users tabs. Is there such a collection?
Apr 24, 2006 03:39 PM|Amek|LINK
In case somebody need to know...
Loop through TabController.GetAllTabs() and check for portal, authority, etc...
if (DotNetNuke.Security.PortalSecurity.IsInRoles(ti.AuthorizedRoles) &&
ti.Level == 0 && ti.IsVisible)
Apr 24, 2006 11:34 PM|locopon|LINK
All tab information is already loaded and cached. So, if you want to prefer to make you module more compatible and faster you can use the cached data:
You can use:
For Each t As DotNetNuke.Entities.Tabs.TabInfo In PortalSettings.DesktopTabs
and you don't need to access the database (again)
Hope it helps