Knowledge Base
Control Panel Too Skinny
Last Post 14 Apr 2010 07:01 AM by OJ. 3 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
Basic Member
Basic Member
Posts:78
Avatar

--
17 Feb 2010 05:25 PM  
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.

NOTE: Changing the DOCTYPE can cause some older skins to display differently. Most recent skins should be OK though.
DNNDev AdminUser is Offline
Posts:5766
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
New Member
New Member
Posts:2
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
New Member
New Member
Posts:2
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?
You are not authorized to post a reply.

Active Forums 4.1
spacer
dummy