Return to Snippet

Revision: 60353
at November 5, 2012 00:32 by box86rowh


Initial Code
public List<DotNetNuke.Entities.Tabs.TabInfo> getChildTabs(int parId)
    {
        List<DotNetNuke.Entities.Tabs.TabInfo> tabs = TabController.GetTabsByParent(parId, 0).FindAll(
         delegate(DotNetNuke.Entities.Tabs.TabInfo tab)
         {
             return tab.IsVisible && !tab.IsDeleted;
         }
        );
        return tabs;
    }

Initial URL


Initial Description
this handy function gets all child tabs for the tab id you pass in, only those that are meant to appear in the menu.

Initial Title
Get Child Tabs for Menu on DNN

Initial Tags
c#

Initial Language
C#