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"
    Src="~/Admin/Skins/Banner.ascx" %>

<dnn:Banner runat="server"
id="dnnBanner" />
Displays a banner ad from the affiliate’s database.
<%@ Register TagPrefix="dnn"
    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"
    Src="~/Admin/Skins/Copyright.ascx" %>

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

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

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

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"
    Src="~/Admin/Skins/HostName.ascx" %>

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"
    Src="~/Admin/Skins/Language.ascx" %>

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

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"
    Src="~/Admin/Skins/Logo.ascx" %>

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

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

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

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"
    Src="~/Admin/Skins/Terms.ascx" %>

id="dnnTerms" />

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

id="dnnTreeViewMenu" />

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

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.