1172 Posts in 334 Topics by 320 members
Jump to:If this is your first visit, you will need to register before you can post. However, you can browse all messages below.
| Page: 1 | go to end | Reply | |
| Author | Topic: Using xhtml strict with silverstripe, problem with doctype | 379 views |

21 August 2008 at 8:05pm
Hello people,
I have a problem here: i developed a new website, based on xhtml strict and css.
Everything went well on the testing phase, the problem that i have now is that i see that, somehow, the CMS overwrittes my DOCTYPE Declaration:
I wanted to use this one:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
All my documents validated correctly, the problem is that the CMS populates this header:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
Is there a way of using a xhtml strict DOCTYPE declaration for my html files?
Any help would be appreciated!
Thank you very much,
Eduardo

21 August 2008 at 8:35pm
Add

21 August 2008 at 10:04pm
Or turn ContentNegiotator off.. Have a read of our docs on doctypes on the html page - http://doc.silverstripe.com/doku.php?id=html#doctypes it will hopefully explain things

25 August 2008 at 3:45pm
thank you very much!
:)
| 379 views | |||
| go to top | Reply |