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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

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

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

changing/removing the DOCTYPE?


Go to End


5 Posts   3027 Views

Avatar
tom_a_sparks

Community Member, 11 Posts

9 July 2008 at 3:34pm

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

Community Member, 712 Posts

9 July 2008 at 3:53pm

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

Avatar
Willr

Forum Moderator, 5523 Posts

9 July 2008 at 4:32pm

.. 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

Community Member, 11 Posts

9 July 2008 at 5:13pm

Edited: 09/07/2008 5:13pm

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

Forum Moderator, 5523 Posts

9 July 2008 at 5:16pm

You might need to turn ContentNegotiator off -

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