Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Affordable ASP.NET Hosting Service
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  Correct way to implement XHTML skin as of DNN V4.8.1
Previous Previous
 
Next Next
New Post 3/10/2008 10:16 AM
Resolved
User is offline Matt Christenson
138 posts
www.RealSkydiving.com
9th Ranked


Correct way to implement XHTML skin as of DNN V4.8.1 

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 12:06 PM
User is offline keeperofstars
252 posts
9th Ranked


Re: Correct way to implement XHTML skin as of DNN V4.8.1 

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 1:29 PM
User is offline keeperofstars
252 posts
9th Ranked


Re: Correct way to implement XHTML skin as of DNN V4.8.1 

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 11:42 AM
User is offline Matt Christenson
138 posts
www.RealSkydiving.com
9th Ranked


Re: Correct way to implement XHTML skin as of DNN V4.8.1 

 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 9:56 AM
User is offline keeperofstars
252 posts
9th Ranked


Re: Correct way to implement XHTML skin as of DNN V4.8.1 

There is a free module you can get called open v13wstat3. 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 v13wstat3 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 v13wstat3 remains the same, then the cached version of the v13wstat3 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 Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  Correct way to implement XHTML skin as of DNN V4.8.1
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


FREE Skins, Modules & Control Panel!
Choose how much you want to pay on our Skins, Modules, Containers and Control Panel - Starting from FREE!
www.dnngroup.com
Disgrafic
Diseño y creación de portales web dinámicos :: Desarrollo de módulos personalizados :: Soluciones a medida :: Imagen Corporativa :: Tu proveedor DNN en España
www.disgrafic.com
DM Analytics, LLC
DM Analytics, LLC provides software solutions that facilitate rapid development of independent or dependent datamarts and their associated web-based reporting.
www.dmanalytics.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP