40FINGERS "DNN Framework Attributes" Demo Skin

Page skin: 40F Skin Demo Framework-Attributes // 02.00-Demo-Skin-Attributes-Pages.ascx

This skin shows you some of the DNN Framework data you can use in your skins (just like you can use <%=SkinPath%>)
The part between <%= and %> will be replaced dynamically by the Framework.
Everything in Blue is the dynamic result of the Token mentioned on the previous line
These are supposed to be used in ASCX skins.

If you have any remarks or questions, please let me know.

2017-05-24, Timo Breumelhof

Page Attributes

Page Description = PortalSettings.ActiveTab.Description
Page Link = PortalSettings.ActiveTab.FullUrl
Page Name = PortalSettings.ActiveTab.TabName
Page Title = PortalSettings.ActiveTab.Title
Page Keywords = PortalSettings.ActiveTab.KeyWords
Page TabId = PortalSettings.ActiveTab.TabID
Page Level = PortalSettings.ActiveTab.Level
Page Icon = PortalSettings.ActiveTab.IconFile
Page Icon Large = PortalSettings.ActiveTab.IconFileLarge

Page Has Child Pages

PortalSettings.ActiveTab.HasChildren returns True if the current page has Children.
This page has Children = True


PortalSettings.ActiveTab.BreadCrumbs(x) returns the page info (TabInfo) on level x.
The problem is that if you ask for a non exisiting page you get an error, so you need an extra check
Root page Name = If PortalSettings.ActiveTab.Level > (0) Then Response.Write(PortalSettings.ActiveTab.BreadCrumbs(0).TabName)