//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...
-
Get Started Let's create an html table that is showing some sample data. Here is it: <table> <tbody> ...
Where is hs defined?
ReplyDeleteThanks, just updated code to include hs
ReplyDelete