Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » changing/removing the DOCTYPE?

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

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

Page: 1
Go to End
Author Topic: 2421 Views
  • tom_a_sparks
    Avatar
    Community Member
    11 Posts

    changing/removing the DOCTYPE? Link to this post

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

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: changing/removing the DOCTYPE? Link to this post

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

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: changing/removing the DOCTYPE? Link to this post

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

  • tom_a_sparks
    Avatar
    Community Member
    11 Posts

    Re: changing/removing the DOCTYPE? Link to this post

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

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: changing/removing the DOCTYPE? Link to this post

    You might need to turn ContentNegotiator off -

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

    2421 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.