Products

Solutions

Resources

Partners

Community

About

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!

Set the doctype of your skin (to XHTML)

Return to previous page

  • 4/7/2015
  • 7336 Views

Comments

7336 Views

Set the doctype of your skin (to XHTML)

Last updated long time ago

Comments

Common

(Enter the content of this article below)

Advanced

 

How to set the doctype for your DotNetNuke skin?

There are 2 ways to force DotNetNuke to use an XHTML doctype:

A. Using an XML file

You can set the doctype for a specific skin by including a doctype.xml file.The name of this file should be: "skinname".doctype.xml.So for every HTML / ASCX file you will have to add an XML file.The content of this file should be:

<SkinDocType><![CDATA]<!DOCTYPE.....></SkinDocType>

The part should be replaced with the HTML doctype you want set.

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

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

B. From the Host settings

You can set the Fallback doctype in host settings.Choose Host > Host Settings and select the doctype under “Fallback Skin doctype”.This will force all skins on all portals without a doctype.xml file to use the doctype you set.Please beware that this could potentially lead to unwanted effects if there are non XHTML skins in other portals then the one you are targeting.
Contents
No sections defined
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out