By Lee Sykes
March 2007
In the latest version of DotNetNuke 4.4 .x, a new function has been introduced which allows you to change the DOC TYPE of a document directly within a skin.
It is now possible to specify the DOC TYPE for each of your skins installed in your DotNetNuke portal. In previous versions of DotNetNuke you could only specify the DOC TYPE by making changes to the default.aspx file which would affect all skins installed on your DotNetNuke portal.
Being able to change the DOC TYPE is essential if you are creating pure CSS skins as you need to enable standards compliance mode for browsers to correctly interpret your CSS. We recommend that you read this tutorial in order to get a full grasp of the concepts involved:
Browser Quirks, Standards compliance and DOC TYPES.
In this video tutorial we demonstrate how to enable the
Simple Red Leaf Skin to use the new DOC TYPE function.
Video
- How to switch DOC TYPES in DNN 4.4
- Introduction
- Preparations
- Viewing the current render mode
- How to create a doctype.xml file
- How DotNetNuke uses the doctype.xml file
- Testing the new skin
- Confirming standards compliance mode and quirks mode for the skins installed on the portal
Time Length: 8min 35secs
References and useful links
Browser Quirks, Standards compliance and DOC TYPES
The DotNetNuke Drop Down Actions Bug
Simple Red Leaf Skin
House of Nuke Skin Object
John Mitchell's Blog – DOC TYPE code