Get Child Tabs for Menu on DNN


/ Published in: C#
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. public List<DotNetNuke.Entities.Tabs.TabInfo> getChildTabs(int parId)
  2. {
  3. List<DotNetNuke.Entities.Tabs.TabInfo> tabs = TabController.GetTabsByParent(parId, 0).FindAll(
  4. delegate(DotNetNuke.Entities.Tabs.TabInfo tab)
  5. {
  6. return tab.IsVisible && !tab.IsDeleted;
  7. }
  8. );
  9. return tabs;
  10. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.