using DotNetNuke.Entities.Tabs; var tabs = TabController.GetTabsByPortal(0, portalId); foreach (TabInfo tab in tabs) { Console.WriteLine(tab.TabName); }
using DotNetNuke.Entities.Tabs; int tabId = 1; var tab = TabController.Instance.GetTab(tabId); tab.IsVisible = true; TabController.Instance.UpdateTab(tab);This code gets a tab by its ID and sets its visibility to true. It then updates the tab in the database. The package library for DotNetNuke.Entities.Tabs TabInfo is DotNetNuke.Entities.