Home » DotNetNuke - Skinning » DotNetNuke Skins – Skin Objects

DotNetNuke Skins – Skin Objects

There are a number of DotNetNuke controls, which they call objects, that are available to the skin designer. This adds functionality to the page such as a link to login/logout, date/time, username, and others. Today’s post will list each of the objects that are available and what they do. Many are simple to implement, others require quite a bit more detail than we can go into today.

In the following table the <%@ Register code goes at the top of the ASCX file and the <dnn: code goes where you want the items to display.

Minimal ASP.NET CodeDescription
<%@ Register TagPrefix="dnn"
    TagName="Banner"
    Src="~/Admin/Skins/Banner.ascx" %>

<dnn:Banner runat="server"
id="dnnBanner" />
Displays a banner ad from the affiliate’s database.
<%@ Register TagPrefix="dnn"
    TagName="Breadcrumb"
    Src="~/Admin/Skins/Breadcrumb.ascx" %>

<dnn:Breadcrumb runat="server"
id="dnnBreadcrumb" />
This displays the breadcrumb, the hierarchy of how to navigate to the current page.
<%@ Register TagPrefix="dnn"
    TagName="Copyright"
    Src="~/Admin/Skins/Copyright.ascx" %>

<dnn:Copyright runat="server"
id="dnnCopyright" />
Displays the copyright notice for the portal.
<%@ Register TagPrefix="dnn"
    TagName="CurrentDate"
    Src="~/Admin/Skins/CurrentDate.ascx" %>

<dnn:CurrentDate runat="server"
id="dnnCurrentDate" />
Displays the current date.
<%@ Register TagPrefix="dnn"
    TagName="DotNetNuke"
    Src="~/Admin/Skins/DotNetNuke.ascx" %>

<dnn:DotNetNuke
runat="server"
id="dnnDotnetNuke" />
Displays the DNN Copyright. You don’t have to put this one in, and I wouldn’t.
<%@ Register TagPrefix="dnn"
    TagName="Help"
    Src="~/Admin/Skins/Help.ascx" %>

<dnn:Help
runat="server"
id="dnnHelp" />
Displays a help link that will launch the user’s browser and send an email to the portal administrator. Frankly, I’ve never seen this one used anywhere, but I guess someone had a need for it.
<%@ Register TagPrefix="dnn"
    TagName="HostName"
    Src="~/Admin/Skins/HostName.ascx" %>

<dnn:HostName
runat="server"
id="dnnHostName" />
Displays the host name linked to the host URL. This would be useful for multi-portal situations where you want the other portals to advertise for the main portal, who is the host.
<%@ Register TagPrefix="dnn"
    TagName="Language"
    Src="~/Admin/Skins/Language.ascx" %>

<dnn:Language
runat="server"
id="dnnLanguage" />
Displays a language drop-down. This is useful for changing languages on a multi-lingual site.
<%@ Register TagPrefix="dnn"
    TagName="Links"
    Src="~/Admin/Skins/Links.ascx" %>

<dnn:Links
runat="server"
id="dnnLinks" />
Displays a flat list of links, normally located on the footer and referred to as “footer links” to enable the search engines to find the other related pages. Use this if SEO is important to you and/or you want people who don’t have javascript enabled to be able to navigate your site.
<%@ Register TagPrefix="dnn" TagName="Login"
    Src="~/Admin/Skins/Login.ascx" %>

<dnn:LOGIN runat="server"
id="dnnLOGIN" />
Displays the login/logout link.
<%@ Register TagPrefix="dnn"
    TagName="Logo"
    Src="~/Admin/Skins/Logo.ascx" %>

<dnn:Logo
runat="server"
id="dnnLogo" />
Displays the logo specified in the site settings.
<%@ Register TagPrefix="dnn"
    TagName="Privacy"
    Src="~/Admin/Skins/Privacy.ascx" %>

<dnn:Privacy
runat="server"
id="dnnPrivacy" />
Displays a link to the standard DotNetNuke privacy policy.
<%@ Register TagPrefix="dnn"
    TagName="Search"
    Src="~/Admin/Skins/Search.ascx" %>

<dnn:Search
runat="server"
id="dnnSearch" />
Displays the search box.
<%@ Register TagPrefix="dnn"
    TagName="SolPartMenu"
    Src="~/Admin/Skins/SolPartMenu.ascx" %>

<dnn:SolPartMenu
runat="server"
id="dnnSolPartMenu" />
Displays the menu on the page. This control has a lot of attributes that control appearance, direction of the control, and even what menu the control starts displaying at. We will examine this in depth in a future post.
<%@ Register TagPrefix="dnn"
    TagName="Terms"
    Src="~/Admin/Skins/Terms.ascx" %>

<dnn:Terms
runat="server"
id="dnnTerms" />

Displays the link to the standard DotNetNuke terms and conditions page.
<%@ Register TagPrefix="dnn"
    TagName="TreeViewMenu"
    Src="~/Admin/Skins/TreeViewMenu.ascx" %>

<dnn:TreeViewMenu
runat="server"
id="dnnTreeViewMenu" />

Displays the menu as a tree view.
<%@ Register TagPrefix="dnn"
    TagName="User"
    Src="~/Admin/Skins/User.ascx" %>

<dnn:User
runat="server"
id="dnnUser" />
Displays a link to the registration page if the user has not logged in and the user’s name if they are logged in which links to their profile information. Keep in mind that the site administrator can turn off registration, in which case this control will not display the registration link.

We will examine some of the more complex controls in a future post, but if you are in a hurry, you can go to the DotNetNuke site and download the documentation ZIP file and look at the DotNetNuke Skinning PDF file on page 40 (of version 1.12) to see the attributes that you can use for each of the controls listed above.

Like this Article? Subscribe to get every article sent to your email.

Related Post

  • DotNetNuke Skinning – Collapsible ContainersDotNetNuke Skinning – Collapsible Containers One feature you'll see in DotNetNuke containers is the ability to collapse the container using an icon, typically in the upper right hand corner of the container. Implementing collapsible […]
  • DotNetNuke Skinning – Standard CSS ClassesDotNetNuke Skinning – Standard CSS Classes By now, you've gotten the idea that creating a set of skins and containers for DotNetNuke is a little bit more work than just creating some HTML, images, and a CSS file. Hopefully, you […]
  • DotNetNuke Skinning – ContainersDotNetNuke Skinning – Containers Today we move our focus to DotNetNuke containers. Not because we are done with skins, but because we can't go any further in our discussion of skinning until we cover containers.As […]
  • DotNetNuke Skins – ASCX vs HTML modeDotNetNuke Skins – ASCX vs HTML mode I got a question yesterday from a designer who is unfamiliar with ASP.NET asking what the difference is between ASCX mode and HTML mode when developing skins and containers for […]
  • DotNetNuke Skinning – SolPartMenuDotNetNuke Skinning – SolPartMenu When you first encounter the SolPartMenu skin object, you may become a bit overwhelmed by all of the options.  But, it doesn't take long to realize that you can ignore most of the […]

About Dave Bush

Dave Bush is a Full Stack ASP.NET developer. His commitment to quality through test driven development, vast knowledge of C#, HTML, CSS and JavaScript as well as his ability to mentor younger programmers and his passion for Agile/Scrum as defined by the Agile Manifesto and the Scrum Alliance will certainly be an asset to your organization.

  • http://www.inuit.gl Lars Drachmann

    Hi, what if you’re using DSLOCALISATOR for multilingual sites, how would the control look like for that in a ASCX file?

  • Dave

    I’m not familiar with this object, which I believe is a third party object. You should talk to the company this object came from.