Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

changing/removing the DOCTYPE?


Reply

5 Posts   2448 Views

Avatar
tom_a_sparks

9 July 2008 at 3:34pm Community Member, 11 Posts

how do I change or remove the DOCKTYPE?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

Avatar
Hamish

9 July 2008 at 3:53pm Community Member, 712 Posts

Hey there, just change it in the main template (.SS) files.

Avatar
Willr

9 July 2008 at 4:32pm Forum Moderator, 5511 Posts

.. which is located in themes/yourtheme/templates/Page.ss for more information about doctypes check out http://doc.silverstripe.com/doku.php?id=html

Avatar
tom_a_sparks

9 July 2008 at 5:13pm (Last edited: 9 July 2008 5:13pm), Community Member, 11 Posts

done that
this is what I get with telnet
"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<X3D profile="Immersive" version="3.2"
xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance"
xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-3.2.xsd">
"
this is what my page.ss has
"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.2//EN" "http://www.web3d.org/specifications/x3d-3.2.dtd">
<X3D profile="Immersive" version="3.2" xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-3.2.xsd">
"

Avatar
Willr

9 July 2008 at 5:16pm Forum Moderator, 5511 Posts

You might need to turn ContentNegotiator off -

http://doc.silverstripe.com/doku.php?id=contentnegotiator