Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Doctypes

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: 1748 Views
  • KatB
    Avatar
    Community Member
    94 Posts

    Doctypes Link to this post

    One day I will make sense of the whole world

    Why is it that when I open up a Silverstripe page in my browser, my selected doctype appears in the source when viewed, however, the W3C validator is picking up a different doctype? Where is this other doctype coming from?

  • DesignCity
    Avatar
    38 Posts

    Re: Doctypes Link to this post

    Hmmm... I'm going to hazzard a guess at this one -it's a bit of a leap, stop me if i'm way off ;)

    Silverstripe has a Content Negotiator, which, among other things, detects what content you're sending the browser and changes the doctype of the page accordingly. Maybe thats whats got into your pages?

    Easy fix and test: add ContentNegotiator::disable(); to your _config.php file to disable the content negotiator and ?flush=1 the site and check if it works now...

    Hope it helps!

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Doctypes Link to this post

    See http://doc.silverstripe.com/doku.php?id=html - Under DOCTYPES. That might be of a help to you

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