Maybe everybody already knows … except me.
You can change the doctype ( from at least version 6.5.3 on ) by setting the DominoCompleteDoctype environment variable in notes.ini. It has 3 different values:
0 = <DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”\\>
1 = <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>
2 = <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”>
So far, so good. But what, if you want to have
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> ??
As of Domino 7.0.2 there is a new field that allows you to set the doctype on a form basis. Just add a computed for display field called $$HTMLFrontMatter.
I tried Mode 1, which means to have the words “Transitional” AND any URL in the same phrase (check microsoft.com for specs using IE).
The nice thing about Mode 1 is that you can have true fixed CSS layers, which means they don’t stutter and shake when you scroll the page, but they are firmly fixed like using an Amiga computer’s graphics CPU (was it Denise?).
The problem is that lots of pages are messed up, it might be just poor coding of HTML, but it seems to be a common phenomena (I guess most people don’t produce clinical correct HTML code) :).
Thanks a lot! Just what I was looking for.
Cheers!
/Hans
>As of Domino 7.0.2 there is a new field that allows you to set the doctype on a form basis.
Oh, I didn’t know about that. Seems like a dream comes true – we can have sites with both legacy and modern design on the same server! Thanks a lot!!!
[Went to try and update the common subforms…]
Many thanks for this tip trying to bolt in html code into lotus notes and Internet Explorer copy did not look correct until I added the doctype in this way. The HTML supplied by the developer had a different doctype. Funily enough firefox seemed to work ok! Many thanks for the tip
Thanks for this tip.