Dotnetnuke dnn 获取当前页面和父页面名称和Title

Dotnetnuke dnn 获取当前页面和父页面名称和Title

国内没有资料,固转载老外的东东

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 %>

你可能感兴趣的:(dotnetnuke)