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/Sub-Page-1/Sub-Page-1-A
    Page Name = PortalSettings.ActiveTab.TabName
    Sub Page 1-A
    Page Title = PortalSettings.ActiveTab.Title
    Page Keywords = PortalSettings.ActiveTab.KeyWords
    Page TabId = PortalSettings.ActiveTab.TabID
    2325
    Page Level = PortalSettings.ActiveTab.Level
    2
    Page Icon = PortalSettings.ActiveTab.IconFile
    Page Icon Large = PortalSettings.ActiveTab.IconFileLarge

    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)
    Pages