//add following using derectives to your code file //using DotNetNuke.Entities.Tabs; //using System.Collections.Generic; TabController tController = new TabController(); Dictionary<int,TabInfo> tabs = tController.GetTabsByPortal(PortalId); IDictionaryEnumerator hs = tabs.GetEnumerator(); while (hs.MoveNext()) { TabInfo tInfo = (TabInfo)hs.Value; if (!tInfo.IsAdminTab && tInfo.IsVisible) { //TODO process tab operation from here } }
Monday, January 5, 2009
DotNetNuke Code Snippet: Get All Portal Tabs
Subscribe to:
Post Comments (Atom)
Popular Posts
-
Hi all, Creating a modal popup for asp.net users is always easy, its simply a modal panel, modal popup extender of asp.net ajax and all is ...
-
// using DotNetNuke.Entities.Portals; // using System.Collections; PortalAliasController paController = new PortalAliasController(); PortalA...
-
I was configuring one of our clients farm which required FBA on different web applications (around 5) and he wanted each web application sho...
Where is hs defined?
ReplyDeleteThanks, just updated code to include hs
ReplyDelete