Knowledge Base
Control Panel Too Skinny
Last Post 26 May 2011 10:10 PM by Andrew Hyde. 6 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
KnowBetter AdministratorUser is Offline
Advanced Member
Advanced Member
Posts:96
Avatar

--
17 Feb 2010 05:25 PM  
NOTE, to clear up potential confusion, this post was updated on 7/11/2011 to reflect more current DNN installations. See the note below.

If you're using XMod Pro 2 or later and your Control Panel pages aren't wide enough, the most likely reason is that you have an invalid DOCTYPE declaration in your page. Many DNN skins have invalid DOCTYPE's. This causes browsers like Internet Explorer to display your site in "Quirks Mode", resulting in inconsistent CSS behavior.

From your browser, view the source. The DOCTYPE appears at the top of the page. Examples of valid DOCTYPE's are below:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

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



The DOCTYPE is typically defined in your skin's ASCX file. Most of the time we find that most invalid DOCTYPE's are missing the URL portion of the declaration.

UPDATE (07/11/2011):
Most newer versions of DNN allows you to easily change the DOCTYPE on the Host Settings page. See the following post:
http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryId/2130/The-Fallback-Skin-Doctype-and-skinning.aspx

NOTE: Changing the DOCTYPE can cause some older skins to display differently. Most recent skins should be OK though.
DNNDev AdminUser is Offline
Posts:6314
Avatar

--
01 Mar 2010 02:05 PM  
Added by Allan R.:

FYI ..you may want to add to your forum that from dnn4.4 you don’t need to change the default.aspx, you need to create a file

Templatename.doctype.xml in the same directory as the template containing


<XML>

<![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transtional//EN"

"http://www.3.org/TR/xhtml1/DTD/xhmtl1-transitional.dtd">]]>;

</XML> 
Power Your Website With XMod Pro
Buy XMod Pro Today
OJUser is Offline
Basic Member
Basic Member
Posts:9
Avatar

--
14 Apr 2010 05:26 AM  

Posted By DNNDev Admin on 01 Mar 2010 02:05 PM
Added by Allan R.:

FYI ..you may want to add to your forum that from dnn4.4 you don’t need to change the default.aspx, you need to create a file

Templatename.doctype.xml in the same directory as the template containing


<XML>

<![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transtional//EN"

"http://www.3.org/TR/xhtml1/DTD/xhmtl1-transitional.dtd">]]>;

</XML> 



I am experiencing the same problem, but from your text above I am not certain in which folder to put the file "Templatename.doctype.xml" with the above specified content. Could you please specify?
OJUser is Offline
Basic Member
Basic Member
Posts:9
Avatar

--
14 Apr 2010 07:01 AM  
Found this:
http://blogs.snapsis.com/PermaLink,guid,739278ef-6d9e-4e73-804b-45627dcc6256.aspx

Works for me, but as you point out, now I probably will have to enter this code into every template ascx-file I use.

Is the file you mention above to be placed in that same directory?
patrick stirnUser is Offline
New Member
New Member
Avatar

--
04 Jul 2010 05:30 PM  

Please read:

http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryId/2130/The-Fallback-Skin-Doctype-and-skinning.aspx

Go to host settings and choose XHTML 1.0 Transitional or strict for "fallback skin DOCTYPE"
SabrinacsUser is Offline
New Member
New Member
Posts:10
Avatar

--
20 Sep 2010 08:43 AM  
Just to add my 2 cents
The Skin files usually are ascx files so they don't have any Doctype declaration inside, so we have to add the xml file for each .ascx file in our skin or is there another place where to set the correct doctype to make it valid for the whole portal?

thank you in advance
regards
Andrew HydeUser is Offline
New Member
New Member
Avatar

--
26 May 2011 10:10 PM  
I have a DNN 4.9 site that has over 70 templates in use, and the best way adjust for the doctype is to edit the default.aspx.vb file( line 244 aprox) Dim DocTypeValue As String = "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0 Transitional//EN"" ""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"">" This resolved the slender control panel.
You are not authorized to post a reply.

Active Forums 4.1
spacer
dummy