DotNetNuke Skin Objects Reference Code
Banner code and Example
SkinObject - dnn:BANNER
Code Snippet - < dnn:Banner runat="server" id="dnnBanner">
Description - Displays a random banner ad
<%@ Register TagPrefix="dnn" TagName="BREADCRUMB" Src="~/Admin/Skins/BreadCrumb.ascx" %>
SkinObject - dnn:BREADCRUMB
Code Snippet - < dnn:Breadcrumb runat="server" id="dnnBreadcrumb">
Description - Displays the path to the currently selected tab in the form of TabName1 > TabName2 > TabName3
<%@ Register TagPrefix="dnn" TagName="COPYRIGHT" Src="~/Admin/Skins/Copyright.ascx" %>
SkinObject - dnn:COPYRIGHT
Code Snippet - < dnn:Copyright runat="server" id="dnnCopyright">
Description - Displays the copyright notice for the portal
<%@ Register TagPrefix="dnn" TagName="CURRENTDATE" Src="~/Admin/Skins/CurrentDate.ascx" %>
SkinObject - dnn:CURRENTDATE
Code Snippet - < dnn:CurrentDate runat="server" id="dnnCurrentDate">
Description - Displays the current date
DotNetNuke code and Example
Include following code at the top of ascx page
<%@ Register TagPrefix="dnn" TagName="DOTNETNUKE" src="~/Admin/Skins/DotNetNuke.ascx" %>
SkinObject - dnn:DOTNETNUKE
Code Snippet - < dnn:DotNetNuke runat="server" id="dnnDotnetNuke">
Description - Displays the Copyright notice for DotNetNuke (not required )
<%@ Register TagPrefix="dnn" TagName="USER" src="~/Admin/Skins/User.ascx" %>
SkinObject - dnn:USER
Code Snippet - < dnn:User runat="server" id="dnnUser">
Description - Dual state control – displays a “Register” link for anonymous users or the users name for authenticated users.
Help code and Example
Include following code at the top of ascx page
<%@ Register TagPrefix="dnn" TagName="HELP" Src="~/Admin/Skins/Help.ascx" %>
SkinObject - dnn:HELP
Code Snippet - < dnn:Help runat="server" id="dnnHelp">
Description - Displays a link for Help which will launch the users email client and send mail to the portal Administrator
Host Name code and Example
Include following code at the top of ascx page
<%@ Register TagPrefix="dnn" TagName="HOSTNAME" src="~/Admin/Skins/HostName.ascx" %>
SkinObject - dnn:HOSTNAME
Code Snippet - < dnn:HostName runat="server" id="dnnHostName">
Description - Displays the Host Title linked to the Host URL
<%@ Register TagPrefix="dnn" TagName="LINKS" src="~/Admin/Skins/Links.ascx" %>
SkinObject - dnn:LINKS
Code Snippet - < dnn:Links runat="server" id="dnnLinks">
Description - Displays a flat menu of links related to the current tab level and parent node. This is useful for search engine spiders and robots
Login code and Example
Include following code at the top of ascx page
<%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %>
SkinObject - dnn:LOGIN
Code Snippet - < dnn:Login runat="server" id="dnnLogin">
Description - Dual state control - displays "Login" for anonymous users and "Logout" for authenticated users.
<%@ Register TagPrefix="dnn" TagName="LOGO" src="~/Admin/Skins/Logo.ascx" %>
SkinObject - dnn:LOGO
Code Snippet - < dnn:Logo runat="server" id="dnnLogo">
Description - Displays the portal logo
Privacy code and Example
Include following code at the top of ascx page
<%@ Register TagPrefix="dnn" TagName="PRIVACY" src="~/Admin/Skins/Privacy.ascx" %>
SkinObject - dnn:PRIVACY
Code Snippet - < dnn:Privacy runat="server" id="dnnPrivacy">
Description - Displays a link to the Privacy Information for the portal
<%@ Register TagPrefix="dnn" TagName="SEARCH" src="~/Admin/Skins/Search.ascx" %>
SkinObject - dnn:SEARCH
Code Snippet - < dnn:Search runat="server" id="dnnSearch">
Description - Displays the search input box
Signin code and Example
Include following code at the top of ascx page
<%@ Register TagPrefix="dnn" TagName="SIGNIN" src="~/Admin/Skins/Signin.ascx" %>
SkinObject - dnn:SIGNIN
Code Snippet - < dnn:Signin runat="server" id="dnnSignin">
Description - Displays the signin control for providing your username and password.
Terms code and Example
Include following code at the top of ascx page
Code Snippet - < dnn:Terms runat="server" id="dnnTerms">
Description - Displays a link to the Terms and Conditions for the portal
Include following code at the top of ascx page
<%@ Register TagPrefix="dnn" TagName="BANNER" Src="~/Admin/Skins/Banner.ascx" %>SkinObject - dnn:BANNER
Code Snippet - < dnn:Banner runat="server" id="dnnBanner">
Description - Displays a random banner ad
Breadcrumb code and Example
Include following code at the top of ascx page<%@ Register TagPrefix="dnn" TagName="BREADCRUMB" Src="~/Admin/Skins/BreadCrumb.ascx" %>
SkinObject - dnn:BREADCRUMB
Code Snippet - < dnn:Breadcrumb runat="server" id="dnnBreadcrumb">
Description - Displays the path to the currently selected tab in the form of TabName1 > TabName2 > TabName3
Copyright code and Example
Include following code at the top of ascx page<%@ Register TagPrefix="dnn" TagName="COPYRIGHT" Src="~/Admin/Skins/Copyright.ascx" %>
SkinObject - dnn:COPYRIGHT
Code Snippet - < dnn:Copyright runat="server" id="dnnCopyright">
Description - Displays the copyright notice for the portal
Current Date code and Example
Include following code at the top of ascx page<%@ Register TagPrefix="dnn" TagName="CURRENTDATE" Src="~/Admin/Skins/CurrentDate.ascx" %>
SkinObject - dnn:CURRENTDATE
Code Snippet - < dnn:CurrentDate runat="server" id="dnnCurrentDate">
Description - Displays the current date
DotNetNuke code and Example
Include following code at the top of ascx page
<%@ Register TagPrefix="dnn" TagName="DOTNETNUKE" src="~/Admin/Skins/DotNetNuke.ascx" %>
SkinObject - dnn:DOTNETNUKE
Code Snippet - < dnn:DotNetNuke runat="server" id="dnnDotnetNuke">
Description - Displays the Copyright notice for DotNetNuke (not required )
User code and Example
Include following code at the top of ascx page<%@ Register TagPrefix="dnn" TagName="USER" src="~/Admin/Skins/User.ascx" %>
SkinObject - dnn:USER
Code Snippet - < dnn:User runat="server" id="dnnUser">
Description - Dual state control – displays a “Register” link for anonymous users or the users name for authenticated users.
Help code and Example
Include following code at the top of ascx page
<%@ Register TagPrefix="dnn" TagName="HELP" Src="~/Admin/Skins/Help.ascx" %>
SkinObject - dnn:HELP
Code Snippet - < dnn:Help runat="server" id="dnnHelp">
Description - Displays a link for Help which will launch the users email client and send mail to the portal Administrator
Host Name code and Example
Include following code at the top of ascx page
<%@ Register TagPrefix="dnn" TagName="HOSTNAME" src="~/Admin/Skins/HostName.ascx" %>
SkinObject - dnn:HOSTNAME
Code Snippet - < dnn:HostName runat="server" id="dnnHostName">
Description - Displays the Host Title linked to the Host URL
Links code and Example
Include following code at the top of ascx page<%@ Register TagPrefix="dnn" TagName="LINKS" src="~/Admin/Skins/Links.ascx" %>
SkinObject - dnn:LINKS
Code Snippet - < dnn:Links runat="server" id="dnnLinks">
Description - Displays a flat menu of links related to the current tab level and parent node. This is useful for search engine spiders and robots
Login code and Example
Include following code at the top of ascx page
<%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %>
SkinObject - dnn:LOGIN
Code Snippet - < dnn:Login runat="server" id="dnnLogin">
Description - Dual state control - displays "Login" for anonymous users and "Logout" for authenticated users.
Logo code and Example
Include following code at the top of ascx page<%@ Register TagPrefix="dnn" TagName="LOGO" src="~/Admin/Skins/Logo.ascx" %>
SkinObject - dnn:LOGO
Code Snippet - < dnn:Logo runat="server" id="dnnLogo">
Description - Displays the portal logo
Privacy code and Example
Include following code at the top of ascx page
<%@ Register TagPrefix="dnn" TagName="PRIVACY" src="~/Admin/Skins/Privacy.ascx" %>
SkinObject - dnn:PRIVACY
Code Snippet - < dnn:Privacy runat="server" id="dnnPrivacy">
Description - Displays a link to the Privacy Information for the portal
Search code and Example
Include following code at the top of ascx page<%@ Register TagPrefix="dnn" TagName="SEARCH" src="~/Admin/Skins/Search.ascx" %>
SkinObject - dnn:SEARCH
Code Snippet - < dnn:Search runat="server" id="dnnSearch">
Description - Displays the search input box
Signin code and Example
Include following code at the top of ascx page
<%@ Register TagPrefix="dnn" TagName="SIGNIN" src="~/Admin/Skins/Signin.ascx" %>
SkinObject - dnn:SIGNIN
Code Snippet - < dnn:Signin runat="server" id="dnnSignin">
Description - Displays the signin control for providing your username and password.
<%@ Register TagPrefix="dnn" TagName="TERMS" src="~/Admin/Skins/Terms.ascx" %>
SkinObject - dnn:TERMSCode Snippet - < dnn:Terms runat="server" id="dnnTerms">
Description - Displays a link to the Terms and Conditions for the portal
Comments