2

Resolved

Set Doctype

description

It would be very nice to be able to set the doctype w/ this skin object so that I don't always have to have that annoying XML file (thankful for it, but I often forget to add for all skin variations).

comments

Timo_Design wrote Apr 11, 2011 at 8:22 PM

Ralph, good suggestion.
I have the same issue sometimes, the thing is that because of the way this is done in DNN, it's not easy to do it correctly.
Setting the doctype is not difficult, setting the correct lang attribute for the HTML tag is.

What if I would generate the doctype.xml file for you if it does not exist?
  1. Check if it exists.
  2. If not generate it.
You could use the roles filter to prevent it from checking on every page load.
What do you think?

Timo

wrote Apr 11, 2011 at 8:26 PM

ralphwilliams wrote Apr 11, 2011 at 8:49 PM

Sounds like a good workaround!

Although, not sure about the last part w/ the roles. You lost me there ;) Is that something that would be set up in the skin object, or something I would have to do?

Timo_Design wrote Apr 12, 2011 at 6:50 AM

There's a role filter in the skin object, it only adds or removes something if you set a role
The IfRole attribute.
It seems kind of useless to check if the file exists on every postback, so it might be good to only do that if the a certain role is logged in.
I'm quite busy the next week, so you'll have to wait a bit, but I'll ping you if it's included.

Timo_Design wrote May 14, 2011 at 8:15 AM

Ralph, I found a way to change the doctype correctly from code. I will release somewhere next week ...

Timo_Design wrote May 14, 2011 at 9:06 AM

Added to V 02.00.00 (will be released this week)

wrote Feb 14, 2013 at 2:09 AM

wrote May 16, 2013 at 8:04 AM

wrote May 16, 2013 at 8:04 AM

wrote Jun 14, 2013 at 6:49 AM