Posted By

box86rowh on 11/05/12


Tagged

menu c# DNN


Versions (?)

Get Child Tabs for Menu on DNN


 / Published in: C#
 

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

  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  

You need to login to post a comment.