Everything about Domino, PHP and other programming languages

DocType per form in a database

Ferdi Verlaan  February 22 2010 09:51:29
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, with a doctype formula like:

"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">" + @NewLine

Before this field it was necessary to configure your whole Lotus Domino server to one of the following settings:

Set 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">

A value of zero is the default/old behavior, with all the problems that it creates.
For more information about doctypes, see the article written by Jeffrey Zeldman of A List Apart.

Comments
No Comments Found