<%=DocType%>

Rita Mikusch asked on February 7, 2017 00:23

Hi,

(version 8.0)

I want to tweak the doctype for our kentico site. I checked the /CMSPages/PortalTemplate.aspx file, and this is what it has for the doctype:

<%=DocType%>

<html xmlns="https://www.w3.org/1999/xhtml" <%=XmlNamespace%>>

Would anybody be able to tell me where that "DocType" variable is set? I haven't found anything in the master template ... maybe I'm not looking in the right place?

Thank you, Rita.

Correct Answer

Kristian Bortnik answered on February 7, 2017 00:41

The DocType variable is set on the "Master page" tab of pages that use a master template.

Image Text

0 votesVote for this answer Unmark Correct answer

Recent Answers


Trevor Fayas answered on February 7, 2017 00:37

It's going to be on the "Master Page" tab on your page node (usually the root document).

Assign a page a Template that has the "Is Master Template" checked.

Save, possibly refresh, and you'll see a Master Page tab next to the Form tab.

There has the Doc Type, Namespace, etc places. Hope that helps!

0 votesVote for this answer Mark as a Correct answer

Rita Mikusch answered on February 7, 2017 00:51

Hi,

There is no value set for the doctype on the master page.

Lol ugh, but I just had an epiphany ... the doctype I'm seeing when I do a view source in my browser must be a default doctype that's added by the browser! No wonder I couldn't find it set anywhere in kentico.

So if I set a doctype on the master page, that should replace the default doctype I'm seeing now.

Thanks, Rita.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.