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
https://demo.40fingers.net/dnn-framework-attributes-demo-skin/Pages
Page Name = PortalSettings.ActiveTab.TabName
Pages
Page Title = PortalSettings.ActiveTab.Title
Page Keywords = PortalSettings.ActiveTab.KeyWords
Page TabId = PortalSettings.ActiveTab.TabID
2318
Page Level = PortalSettings.ActiveTab.Level
0
Page Icon = PortalSettings.ActiveTab.IconFile
Page Icon Large = PortalSettings.ActiveTab.IconFileLarge
/Portals/40F-Demo-Skin-Framework-Attributes/40F-100px.png?ver=axCIkeqegOKfAIMR_xjJbQ%3d%3d

Page Has Child Pages

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

Breadcrumbs

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)