Login | Forgot password | Register
What is OpenID?
OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.
With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.
For more information visit the official OpenID site.
Archive
SilverStripe Forums » Archive » Using xhtml strict with silverstripe, problem with doctype
Our old forums are still available as a read-only archive.
|
Page:
1
|
Go to End | |
| Author | Topic: Using xhtml strict with silverstripe, problem with doctype | 594 Views |
-
Using xhtml strict with silverstripe, problem with doctype

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
-
Re: Using xhtml strict with silverstripe, problem with doctype

21 August 2008 at 8:35pm
Add
above your DOCTYPE.<?xml version="1.0" encoding="utf-8"?>
-
Re: Using xhtml strict with silverstripe, problem with doctype

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
-
Re: Using xhtml strict with silverstripe, problem with doctype

25 August 2008 at 3:45pm
thank you very much!
| 594 Views | ||
|
Page:
1
|
Go to Top |
Currently Online: There is nobody online.
Welcome to our latest member: freebie



