@inherits Custom.Hybrid.Razor14
<!-- unimportant stuff, hidden -->
@using System.Collections.Generic;
Example from DNN Data DNN also provides... <!-- unimportant stuff, hidden -->
@{#if NETCOREAPP}
@Html.Partial("../shared/_MessageOqtaneDisabled.cshtml")
@{#else}
@{
// get the pages
var pages = DotNetNuke.Entities.Tabs.TabController.GetPortalTabs(CmsContext.Site.Id, 0, true, false);
var current = DotNetNuke.Entities.Tabs.TabController.CurrentPage;
}
<ul>
@foreach(DotNetNuke.Entities.Tabs.TabInfo dnnPage in pages) {
<li class='@(dnnPage.TabID == current.TabID ? "selected" : "")'>
<a href="@dnnPage.FullUrl" target="_blank">
@dnnPage.TabName (#@dnnPage.TabID)
</a>
</li>
}
</ul>
@{#endif}
<!-- unimportant stuff, hidden -->