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, ...Adding tags/code to HTML (pre-head) section of page via Skin (without altering default.aspx)Adding tags/code to HTML (pre-head) section of page via Skin (without altering default.aspx)
Previous
 
Next
New Post
4/24/2011 10:17 PM
 
I had a client send me a skinning question I was hoping someone could help answer as I am not a skinning guru, I am more on the programming side.  I have only found half the answer.  Below is the example of what they want to do with DNN via their skin.  I know that you can change the document type via the XML file with the skin, however I have no idea how to inject the other tags etc. into the HTML section / pre-head of the page etc. Can anyone give me some assistance?  Below is the example markup.  Thanks. 

Here is the current site header (with meta data, open graph tags, ie conditional comments, etc), which is what we'd like to mimic in DNN.

An example of the namespace question in particular is the xmlns attribute:
<html class="ie9" xmlns:fb="http://www.facebook.com/2008/fbml">

<!DOCTYPE HTML>
<!--[if IE 6]><![endif]-->
<!--[if lt IE 7 ]> <html class="ie6" xmlns:fb="http://www.facebook.com/2008/fbml"> <![endif]-->
<!--[if IE 7 ]> <html class="ie7" xmlns:fb="http://www.facebook.com/2008/fbml"> <![endif]-->
<!--[if IE 8 ]> <html class="ie8" xmlns:fb="http://www.facebook.com/2008/fbml"> <![endif]-->
<!--[if IE 9 ]> <html class="ie9" xmlns:fb="http://www.facebook.com/2008/fbml"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html xmlns:fb="http://www.facebook.com/2008/fbml"> <!--<![endif]-->

<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta property="og:title" content="">
<meta property="og:description" content="">
<meta property="og:image" content="">
<meta property="og:site_name" content="Coors Light">
<meta name="title" content="">
<meta name="description" content="">
<link rel="image_src" href="" />
<meta name="keywords" content="">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<title>Coors Light</title>
<!--[if lt IE 9]> <script src="../assets/js/html5shiv.js"></script> <![endif]-->
<link rel="stylesheet" href="../assets/css/screen.css" type="text/css">
</head>
<body>


Best Regards,

Robert J Collins | Co-Founder & President

Netlogic Corporation

 
New Post
4/25/2011 6:29 AM
 

Robert,

The doctype is controlled via the skinname.doctype xml file (an example of which you can find in the default Minimal Extropy skin files of your install). The conditional statements can be added using the [STYLES] skinobject, there's a good write up on the Think of Design blog (http://www.thinkofdesign.com/blog/81/...) and their skinning reference (http://www.thinkofdesign.com/resource...)

Is this what you are looking for?

Regards,

Rick.



PSDtoDNN - You supply the artwork... we'll build the skins!™
Website | Twitter | YouTube | Skype
 
New Post
4/26/2011 11:59 AM
 
Thanks Rick!  I think you nailed it.  I have forwarded your comments and the reference links to my client for review.  Thanks again. 


Best Regards,

Robert J Collins | Co-Founder & President

Netlogic Corporation

 
New Post
4/26/2011 1:18 PM
 

Robert,

You're welcome, glad it helped :)

Regards,

Rick.



PSDtoDNN - You supply the artwork... we'll build the skins!™
Website | Twitter | YouTube | Skype
 
New Post
4/28/2011 3:34 PM
 
Or you could use the style helper skin object, it will do the same and much more without adding code to the skin.
http://bit.ly/hDd2cE
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Adding tags/code to HTML (pre-head) section of page via Skin (without altering default.aspx)Adding tags/code to HTML (pre-head) section of page via Skin (without altering default.aspx)


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