Do you need a Dotnetnuke Module Token? It’s listed here.

While working on a recent project that was using Dotnetnuke version 7, I had to search Module Token online frequently. Not all of them was listed on the same place where I can just use for a reference. Below I’ve listed most of the tokens that I’ve found while working on my past DNN projects.

If you know about any module token that is not listed in the resource below, please let me know and I’ll update it soon.

DescriptionDNN Token
Domain NamePortalSettings.PortalAlias.HTTPAlias
Domain NameCType(HttpContext.Current.Items("PortalSettings"),PortalSettings).PortalAlias.HTTPAlias
Portal Site IDPortalSettings.PortalAlias.PortalID
Portal Site ID #PortalSettings.PortalId
Portal META DescriptionPortalSettings.Description
Page DescriptionPortalSettings.ActiveTab.Description
Portal META TITLE NamePortalSettings.PortalName
Admin Email addressPortalSettings.Email
Portal home folderPortalSettings.HomeDirectory
Home page Full URLNavigateUrl(PortalSettings.HomeTabId)
Home page Tab Id #PortalSettings.HomeTabId
Splash page Tab IdNavigateURL(PortalSettings.SplashTabId)
Splash Tab Id #PortalSettings.SplashTabId
Host page URLNavigateURL(PortalSettings.SuperTabId)
Super Tab Id #PortalSettings.SuperTabId
Admin page URLNavigateURL(PortalSettings.AdminTabId)
Admin Tab Id #PortalSettings.AdminTabId
Full Page URLPortalSettings.ActiveTab.FullUrl
Page Name - Menu Tab NamePortalSettings.ActiveTab.TabName
Page TitlePortalSettings.ActiveTab.Title
Page KeywordsPortalSettings.ActiveTab.KeyWords
KeywordsPortalSettings.KeyWords
Page TabID #PortalSettings.ActiveTab.TabID
Page Tab LevelPortalSettings.ActiveTab.Level
Current Portal IDPortalSettings.ActiveTab.PortalID
  
Tab NameCType(PortalSettings.DesktopTabs(0),DotNetNuke.Entities.Tabs.TabInfo).TabName
Tab OrderPortalSettings.ActiveTab.TabOrder
Tab PathPortalSettings.ActiveTab.TabPath
Tab TypePortalSettings.ActiveTab.TabType
Login Tab Id #PortalSettings.LoginTabId
Navigate Url file pathNavigateUrl(3)
  
Current FileRequest.RawUrl
  
Bread Crumbs 
Bread Crumbs Tab NamePortalSettings.ActiveTab.BreadCrumbs(0).TabName
  
Skin & Containers 
Skin PathSkinPath
Container PathPortalSettings.ActiveTab.ContainerPath
Container Path FilePortalSettings.ActiveTab.ContainerSrc
Skin PathPortalSettings.ActiveTab.SkinPath
Skin Path FilePortalSettings.ActiveTab.SkinSrc
  
Date & Time 
Display Date & TimePortalSettings.ActiveTab.EndDate
Start DatePortalSettings.ActiveTab.StartDate
Expiry DatePortalSettings.ExpiryDate
Time Zone OffsetPortalSettings.TimeZoneOffset
  
DNN Settings 
Portal DNN VersionPortalSettings.Version
Background FilePortalSettings.BackgroundFile
Displays CurrencyPortalSettings.Currency
Default LanguagePortalSettings.DefaultLanguage
Footer TextPortalSettings.FooterText
Hosting FeePortalSettings.HostFee
Site Log History SettingsPortalSettings.SiteLogHistory
Hosting SpacePortalSettings.HostSpace
Logo File NamePortalSettings.LogoFile
  
Users / Members 
Administrator RolesPortalSettings.ActiveTab.AdministratorRoles
Authorized RolesPortalSettings.ActiveTab.AuthorizedRoles
Administrator IdPortalSettings.AdministratorId
Administrator Role Id #PortalSettings.AdministratorRoleId
Administrator Role NamePortalSettings.AdministratorRoleName
Registered Role Id #PortalSettings.RegisteredRoleId
Registered Role NamePortalSettings.RegisteredRoleName
User RegistrationPortalSettings.UserRegistration
User Tab Id #PortalSettings.UserTabId
Login/LogOff StatsIIf(Request.IsAuthenticated,"LoggedIn","NotLoggedIn")
Login/LogOff Stats IIIf(Request.IsAuthenticated, "LOGGED IN", "")
Username After LoginUserController.GetCurrentUserInfo().Username
  
Portal Directory PathPortalSettings.HomeDirectoryMapPath
  
ViewState 
Clear View StateViewState.Clear
Count View StateViewState.Count
  
Others 
Active Tab Icon FilePortalSettings.ActiveTab.IconFile
  

Siddharth Pandey

Siddharth Pandey is a Software Engineer with thorough hands-on commercial experience & exposure to building enterprise applications using Agile methodologies. Siddharth specializes in building, managing on-premise, cloud based real-time standard, single page web applications (SPAs). He has successfully delivered applications in health-care, finance, insurance, e-commerce sectors for major brands in the UK. Other than programming, he also has experience of managing teams, trainer, actively contributing to the IT community by sharing his knowledge using Stack Overflow, personal website & video tutorials.

You may also like...

Advertisment ad adsense adlogger