Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...The base of skinningThe base of skinning
Previous
 
Next
New Post
3/23/2008 1:20 PM
 
Hi, Maybe this has already been asked, but I couldn't find it. Have I understood correctly that a skin is just a HTML page (with a style sheet) and where you want to put for example a contentpane, you put [CONTENTPANE]? And if you have a menu that you want to show on every page, do you put it in the skin or do you put [MENU] in your skin? Thanks.
 
New Post
3/23/2008 3:09 PM
 
Hey David, You're on the right track for sure. There is a little more to it than that. I'm not sure if you are familiar with .ASCX or XML, but I'm going to give you a quick explanation in case. this should make it much more clear as to what is happening. When I think of DotNetNuke skins, I don't really consider the HTML page a skin at all. It's more, the tool you use to tell DotNetNuke HOW to make the skin you want. The skin that DNN uses is actually an .ascx file. You don't need to know anything about ascx files at all, so don't get nervous if it sounds strange :-> Basically though, in an ascx file there are tags just like HTML, and some special tags that cause all kinds of neat functions. In HTML you would write something like to change a font color. You do the same in ASCX(by the way, ascx is what .NET is about...kinda). So in the DotNetNuke world, the folks who so generously build us this great package to use, created "controls" or prewritten little chunks of code to handle things like logging in and out, displaying dynamic content. these codes are more ascx files. Most of us know html best, and xml isn't hard to figure out. So lets say, you want to display a menu, the creators of DotNetNuke made it already(we'll just say they did, or someone who loves them did :->). Anyhow how to do you tell the menu to display horizontal or vertical? If you were writing an ASCX file, you problem guessed it already, you'd do something like (don't try that..it won't work..just making a point). But you know already, we need to use a token in the HTML file. the token can be [MENU] [NAV] OR [SOLPARTMENU] or any third parties you wish to install. So...how now do I tell DNN that it's horizontal or vertical??? it's not a standard tag is it? The method is simple, and the reason is even better. you put the "settings" for the tokens in an XML file. Take a look at the blue skins that came with your DotNetNuke. You'll see xml, ascx, html, and some other junk. Open up the XML file and read it line by line. you'll notice somethign cool. Standard settings that you'd need to type in every skin are there. it's easier to write in HTML, and reuse your XML file for many skins, rather than write the whole thing in ASCX and try to remember all your settings every time. This is what is so great about how dotnetnuke is structured. The creators and community made things work so that our job is easy, if we just have a little patience and try to understand what looks strange at first. So... You are right, you create the HTML file, using tokens, then you create an XML file of the same name with the specs for your tokens. Be sure to save your first .xml file so you can reuse it in other skins, or just copy the blue one, and tweak it a bit. When you upload your skin package, DNN will "parse" it, and make the tokens into the proper tags automatically, if you have all your files correct. You're gunna love it! Josh

Josh Martin

 
New Post
3/23/2008 3:09 PM
 
Hmmm.
Safari, FCK, goofie in the rich text editor. using basic text now.
sorry for the excess duplicate posts.


Josh Martin

 
New Post
3/24/2008 8:31 AM
 
Hi Josh, Thank you very much for your reply. I'm afraid I haven't understood all of it yet. Tell me where I'm wrong: I have to make a HTML file, this is where I tell how big the tables are and stuff. Then the CSS, where I tell which font and size and these things. I know how to handle HTML and CSS. Then, I read in the DNN Skinning guide of this site that when I upload the skin the processer makes the ASCX file itself. Do I have to make an ASCX file myself? Unfortunately I haven't got access to the portal yet, but I'll try to solve this (I can explain why if you wish but then I'd rather do that via email). So in the XML I put the settings for the tokens? Anyway, I'll see that when I get the standard XML file. Already many thanks, David
 
New Post
3/24/2008 11:07 PM
 
nope. You DO NOT make an ascx file yourself. You're on the right track..just make the HTML file, and the CSS file. put the tokens [MENU] etc where you want the dynamic DNN content to populate. When you do all that...then you can make a XML to change settings on the [tokens].

Let us know when you get the HTML/CSS done and we can help you with the tokens specifically. it'll all start to fall in place and make sense soon enough.



Josh Martin

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...The base of skinningThe base of skinning


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out