Search code examples
dotnetnukeddrmenu

How do I set my footer menu to display all children of a page called "Footer"?


I'm attempting to design a skin with a footer menu and had some success with tabID. However, the tab ID would change if someone else uses the skin.

How do I set my footer menu to take in all children of a page called "Footer"? I have only a single "Footer" page within the page list and it contains T&C, Contact, Privacy policy etc.


Solution

  • You can get TabInfo of Footer tab as follow, then access to all Tab's props, like TabID, ... using that

    var tabInfo = DotNetNuke.Entities.Tabs.TabController.Instance.GetTabByName("Footer", PortalId);
    var footerPageTabId = tabInfo.TabID;
    // work with footerPageTabId ...