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, ...Correct way to implement XHTML skin as of DNN V4.8.1Correct way to implement XHTML skin as of DNN V4.8.1
Previous
 
Next
New Post
3/10/2008 1:16 PM
 

Can someone please tell me, what is the correct way to specify that my skin will be an XHTML standard document, so that the page is not rendered in quirks mode?

I have searched and have found numerous threads discussing a few different ways, however the core recommended approach had possible performance issues and were in discussion about being fixed as of v4.4.0, I had found some work arounds as well.

My skin is being developed as an HTML file that will be parsed by DNN and turned into an .ascx file, I am not creating the .ascx file directly.  (i only mention this because one of the solutions I saw suggested sounded like the .ascx file needed the 'workaround', because the HTML parser would become confused by the tags.

I want to make sure that I do this in the 'newest' way possible; and so could someone either explain what should be done, or refer me to the most recent recommendation?

Thanks very much,

Matt Christenson

 
New Post
3/10/2008 3:06 PM
 

In your skin folder you need to create another xml file. This file needs to be named.      NameofYourSkin.doctype.xml    Inside this xml file you just need to put the following.

<XML>

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

<XML>

Save it in your skin and reparse / upload your skin and it should have the new doctype. NOTE: this only works on DNN 4.4.1+

 

 
New Post
3/10/2008 4:29 PM
 

Oh and its also possible to change / alter the default.ascx page in the portal however this changes all skins and containers to be compliant and some modules do not render xhtml coding standards so they will possibly break. Thus its better to make the change per skin / container you create / buy and then test it with all your modules to ensure no errors occur.

 
New Post
3/11/2008 2:42 PM
 

keeperofstars wrote

In your skin folder you need to create another xml file. This file needs to be named.      NameofYourSkin.doctype.xml    Inside this xml file you just need to put the following.

Thank you,

 

 

This is the solution that I used, hoping that the core team will resolve the performance implication by using some form of caching in the future, as performance at this level is not immediatly critical in my project, and this method is more clear than using code within the skin.

 
New Post
3/12/2008 12:56 PM
 

There is a free module you can get called open viewstate. www.opendnn.com just register on site and goto free downloads, find version 3.0. Its a module you can stick on any one of your pages, (works for the whole DNN installation) The module lets you choose to cache the viewstate via xml, memory, or sql database. Version 3.0 provides all the changes inside the module. Just set the time outs etc based on user traffic and server loads. Basically any page a user views is cached and if the page doesn't change IE viewstate remains the same, then the cached version of the viewstate is sent to the user. Saving tons of resources on both client and server side. It greatly speeds up DNN sites, I use it on all of mine and have seen enourmous performance gains. Since I have large storage I save it via xml, and set the cache to like a week long.  So all my "Static" pages are nearly instant loads for my returning visitors. Since they aren't causing a full server hit just a call to the xml file, my server can focus on new visitors / dynamic content.

Hopefully the core team will build a better option right into the core systems, but till then this is a life savor.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Correct way to implement XHTML skin as of DNN V4.8.1Correct way to implement XHTML skin as of DNN V4.8.1


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