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, ...dnn 440 new skindoctype in default.aspx - how does it work?dnn 440 new skindoctype in default.aspx - how does it work?
Previous
 
Next
New Post
12/27/2006 10:40 AM
 

OK....

After much gnashing of teeth, I was able to stumble across the correct implementation by looking at the source code and wild ass guessing.

In order to switch the DOCTYPE from the default, do the following:

1) Create a new xml file to match your skin name.  For example, if you are using the default skin (`/Portals/_default/Skins/DNN-Blue/Horizontal Menu - Fixed Width.ascx), then you would make a new XML file called "Horizontal Menu - Fixed Width.doctype.xml" in the same directory.

2) Put the following in the new XML file. 

<XML> <![CDATA[< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" >]]> </XML>

I can't help but think there must be an easier way to do this...   Would be great if you could simply decalre this in the skin.xml file along with all the other skin variables.

 
New Post
12/27/2006 1:21 PM
 

Though the 4.4 documentation is lacking Cathal Connolly's major strides towards compliance in the core are begining to show in the releases, this new feature being one of them.

The Gemini entry for this enhancement is here (implemtation notes are in the comment of the entry):
http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=3623

Check out his other UI related entries in 4.4!
http://support.dotnetnuke.com/project/ChangeLog.aspx?PROJID=2

Thanks very much Cathal!

Previously we had to define the doctype in default.aspx, unfortunately altering the core. I think this is exactly the place to implement doctypes, with the skins.

I'm curious though, since I develop skins straight into ascx files and not into html & xml, do I create the previosly un-needed xml file and then re-parse the ascx using the DNN gui or can I just add the tag to my ascx skins now and DNN will pick them up?

 
New Post
12/27/2006 1:30 PM
 

 

Yes, you can just add the same tag to the .ascx skin manually.  Anytime you want to manually bypass the skin parser and put code directly in the .ascx skin it will be picked up by DNN.


DotNetNuke Modules from Snapsis.com
 
New Post
12/27/2006 3:56 PM
 

I blogged the details @ http://www.dotnetnuke.com/Community/BlogsDotNetNuke/tabid/825/EntryID/1226/Default.aspx , sorry for the delay (xmas turkey induced coma :) ). I'll update the skinning documentation when I get a chance. Ill also blog a little about the reasons for the current implementation and some other bits and pieces tommorow (i've received half a dozen emails  already so I'll aggregate my answers into a blog post)

I originally found a note on the Microsoft site advising against using an explicit DOCTYPE declarations in the ascx file itself (as an ascx is a page fragment it can cause a failure to load). As John notes, as doctype is now controlled by a server tag, you can of course update the reference via the ascx i.e. skindoctype.text="....", which is safer as the page event model will handle any multiple declarations.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
12/27/2006 4:02 PM
 
phabyn wrote

I'm curious though, since I develop skins straight into ascx files and not into html & xml, do I create the previosly un-needed xml file and then re-parse the ascx using the DNN gui or can I just add the tag to my ascx skins now and DNN will pick them up?

just create the file and drop it in the correct folder, at present there is no need to reparse as the existance of the file is checked during skin load (this will be cached in a future version to avoid performance impact -and also change to an xmltextreader to speed initial load)


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...dnn 440 new skindoctype in default.aspx - how does it work?dnn 440 new skindoctype in default.aspx - how does it work?


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