This is one way:
First, get DotNetNuke TabInfo of page (call function with Content.LinkFieldName) :
public static TabInfo GetTabByUrl(string url){
foreach(var tab in TabController.GetPortalTabs(0, -1, false, true)){
if (tab.FullUrl==url) return tab;
}
return null;
}
Now you have TabInfo of page url and make another function get children:
public static List<TabInfo> GetChildren(TabInfo ti){
var list = new List<TabInfo>();
foreach(var tab in TabController.GetPortalTabs(0, -1, false, true)){
if (ti.TabID==tab.ParentId) list.Add(tab);
}
return list;
}
And now all call all together to list children...
<ul>
@foreach(var page in GetChildren(GetTabByUrl(Content.LinkFieldName))){
<li><a href="@page.FullUrl">@page.TabName</a></li>
}
</ul>
This is my using namespaces:
@using System
@using ToSic.SexyContent
@using DotNetNuke.Entities.Tabs