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

163 Views Asked by At

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.

2

There are 2 best solutions below

6
On BEST ANSWER

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 ...
0
On

After checking the documentation again, I realized there's a nodeselector option for "TabName" which I missed.

Using <dnn .. .. . ..NodeSelector='footer'> worked for me.

Another option would be the poster above's method where global variables are populated with the tabID and called with NodeSelector='<%# TabName %>'