.NET Answers

ASP.NET, HTML, CSS, Visual Studio, CSharp, VB.NET and other programming items of interest.
Subscribe
  • Home
  • About Me
  • Advertising
  • Click Here to Ask a question
    • Privacy Policy
  • Site Map

DotNetNuke Skinning – Getting Set Up

June 10, 2008 By: Dave

While it IS possible to create DotNetNuke skins and containers using a standard HTML editor and HTML files, I find that it is much easier to use Visual Studio and ASCX files instead. The reason for this is that I can modify and run my DotNetNuke installation and see exactly what the end result is going to look like. I also find that I am able to create a much leaner set of HTML using the ASCX method than I can using the HTML method.

For those of you who are designers, this does not mean that you will need to buy another tool. You can download Visual Web Developer Express from Microsoft for free.

Once you have Visual Studio or Web Developer Express installed, you’ll need to download and install the DotNetNuke starter kit from the DotNetNuke site (www.dotnetnuke.com) and then install DotNetNuke as we describe in our article, “Installing DNN into Visual Studio.”

So now that you have DotNetNuke installed and ready to go, the next thing we need to do is create the Skin Files. To do this, right-click the project in solution explorer and select “Add New Item.” This will bring up a dialog box that will display different templates that you can install. Make sure you’ve specified that you will be working in VB.NET and the template, named “DotNetNuke Skin,” should display at the bottom. When it completes, the template wizard will display instructions to rename the skin and container directories to the name you gave the skins. Go ahead and do that.

Since I don’t use the HTML method of creating skins, we are going to next delete the HTML files and the XML files that this wizard created from the skin and container directories. In their place you will create new ASCX files.

Right-click the skin directory that the wizard created and select “Add New Item.” Select “Web User Control” and name it “SkinTest.ascx” (or whatever you want). Make sure you uncheck, “Place code in separate file.”

Right-click on the container directory and select “Add New Item.” Select “Web User Control” and name it ContainerTest.ascx. Again, make sure you leave “Place code in separate file” unchecked.

Next, we need to fix up the header of these two ASCX files we just created. Change the Control Header that Visual Studio created for you in the container so that it says:

<%@ Control language="vb"
   CodeBehind="~/admin/Containers/container.vb"
   AutoEventWireup="false" Explicit="True"
   Inherits="DotNetNuke.UI.Containers.Container" %>

And change the Control header for the skin’s ASCX file to look like this:

<%@ Control language="vb"
    CodeBehind="~/admin/Skins/skin.vb"
    AutoEventWireup="false" Explicit="True"
    Inherits="DotNetNuke.UI.Skins.Skin" %>

You can create multiple skin and container files. They may be different colors, have different layouts, but they should all be similar.

 

Other post in DotNetNuke - Skinning
  • DotNetNuke - Skinning - June 5th, 2008
  • DotNetNuke Skinning - Getting Set Up - June 10th, 2008
  • DotNetNuke Skins - Handling CSS Files - June 12th, 2008
  • DotNetNuke Skins - Hello, World - June 17th, 2008
  • DotNetNuke Skins - Skin Objects - June 19th, 2008
  • DotNetNuke Skinning - Containers - June 24th, 2008
  • DotNetNuke Skinning - Standard CSS Classes - June 26th, 2008
  • DotNetNuke - Avoiding Container Collision - July 1st, 2008
  • DotNetNuke Skinning - Dealing with Images - July 3rd, 2008
  • DotNetNuke Skinning - SolPartMenu - July 8th, 2008
  • DotNetNuke Skinning - Collapsible Containers - July 10th, 2008
  • DotNetNuke Skins - ASCX vs HTML mode - August 27th, 2008

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

Related Post

  • DotNetNuke Skins – ASCX vs HTML mode
  • DotNetNuke Skinning – Containers
  • DotNetNuke – Skinning
Bookmark to:

Add to Del.icio.us Add to digg Add to DotNetKicks Add to DZone Add to Facebook Add to Slashdot Add to Stumble Upon Add to Technorati
Hide Sites
Tags: containers, dotnetnuke, skinning

5 Responses to “ DotNetNuke Skinning – Getting Set Up ”

  1. # 1 Dbarselow Says:
    August 25th, 2008 at 5:55 pm

    Hi David I wanted to thank you for your videos you have allowed the public to view I think it is very gracious of you to share your wisdom regarding information technology. My self became interested in computing 20 years ago give or take a year or two partly do to a forced career change and the rest well just plainly interested. I hope you don’t mind if I ask some questions every now and then. Well I won’t bore you with cit chat I will be looking forward to seeing more of your videos and I will be teling my friends and coleagues about them also.

    DKB

  2. # 2 DotNetNuke Consultant Says:
    October 9th, 2008 at 11:02 pm

    Just browsing through all of your articles. We gave up on doing the HTML upload conversion a long time ago. It’s easier for all our designers to just learn enough of the .Net tags and script in the ascx files and know not to mess with it than it is to make the HTML files and upload/parse them.

    James

  3. # 3 jam Says:
    February 6th, 2009 at 11:03 am

    Hi David

    I like to install DNN in my local machine, do you have a tute hwo to do it?

    I tried it myself but Im stuck in the IIS.. I dont know how to install the database etc..

    do you provide free help?

    thanks

    jam

  4. # 4 Pablo Arthur Says:
    March 26th, 2009 at 8:36 am

    David:

    Very interesting video. Specially the skinning setup.
    I am trying to locate the second part of that video and I can not find it.
    Can you point me to the right direction of the second part??

    Thanks in advance,

    pablo arthur rodger

  5. # 5 Dave Says:
    March 26th, 2009 at 8:51 am

    Not everything is a video. Everything I have on skinning is in the list at the bottom of the post “Other post in DotNetNuke – Skinning”

← DotNetNuke Modules – Anatomy of the View
DotNetNuke Modules – Adding Actions →
  • Search

  • Subscribe

    U COMMENT
    I FOLLOW

    Subscribe in a reader

    OR

    Subscribe via e-mail

    Enter your email address: 

    Delivered by FeedBurner

     

  • Follow Me

    • Twitter
    • FaceBook
    • Digg
    • StumbleUpon
    • Propeller
    • Delicious
    • Plaxo

     

  • Recent Posts

    • ASUS Eee PC 1005HA-PU1X-BK Black Netbook
    • jQuery – Date Picker
    • Using VB.NET From CSharp
    • iTextSharp – Adding Images
    • Hungarian Notation – Use What Works, Spit Out The Bones
    • Pre Order Windows 7
    • jQuery Dialog – With Validation Controls
    • iTextSharp – The easy way
    • Structure of my ASP.NET Web Applications
    • 35% Off Accronis True Image 2009 Home
    • VB.NET Hide Module Name
    • ASP.NET/VB.NET – Video Training
    • Does jQuery Make Us Lazy?
    • PDFs Using iTextSharp
    • Programming SEO – Ping



  • Advertise on this site through Lake Quincy Media
  • DotNetNuke Sponsor

     

    Most Valuable Blogger
  • Sponsor

  • Categories

    • Advanced CSharp
    • Advanced VB.NET
    • ASP.NET MVC
    • Did you know
    • DotNetNuke – Module Development
    • DotNetNuke – Skinning
    • internationalization
    • iTextSharp
    • jQuery
    • none
    • Seach Engine Optimization
    • Silverlight
    • SQL For Programmers
    • Twitter
    • winforms
  • Cloud

    .net ajax architecture asp.net book books containers csharp css dal dataset datasets dotnetnuke events gridview images internationalization internet explorer javascript jQuery json linq listview modules ms-sql MVC objectdatasource programming reflection seo Silverlight skinning sql testing tsql tutorial Twitter twitterizer vb.net video view Vista visual studio webservice WordPress
  • Archives

    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
    • January 2008
    • December 2007
    • November 2007
    • October 2007
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
    • Privacy Policy
  • Calendar

    June 2008
    S M T W T F S
    « May   Jul »
    1234567
    891011121314
    15161718192021
    22232425262728
    2930  
  • Blogroll

    • Alvin Ashcraft’s Morning Dew
    • ASP.NET Consulting
    • Life Hacker
    • Remember Anything
    • The Price of Their Toys
    • Uncategorized Thought


.NET Answers © 2007 - 2008 All Rights Reserved.
Entries and Comments.