Thursday, January 28, 2010

Writing a DNN skin - need to get parent tab name

John Mitchell to the answer:

http://www.snapsis.com/DotNetNuke/Support/tabid/560/aff/12/aft/5003/afv/topic/Default.aspx

Have you ever wanted to get at more than just <%= SkinPath %>in your skin?

Maybe you want to display the name of the currently Active Page?

<%=PortalSettings.ActiveTab.TabName %>

Or maybe you want to display the name of the Active Page's Root level Parent?

<%=PortalSettings.ActiveTab.BreadCrumbs(0).TabName%>

If you want the currently Active Page's immediate Parent Tab Name try this:

<%=PortalSettings.ActiveTab.BreadCrumbs(PortalSettings.ActiveTab.Level - 1).TabName %>

3 comments: