User Tools

Site Tools


en:public:developer:template_system:tags:headelement:doctype

<#doctype>

This tag gives the HTML <!DOCTYPE> Declaration of the current page

Cfgpages configuration

The doctype declaration is taken from the cfgpages. If for exemple the cfgpages contain the node

  <page name='/'>
    <cfg>  
      <doctype>&lt;!DOCTYPE html&gt;</doctype>
    </cfg>
  </pages>

the result of <#doctype> for the page ”/” will be <!DOCTYPE html>

Default

if cfgpages does not contain the node doctype for the current page then this default value will be returned :

  <!DOCTYPE html>

Example

<#doctype>

will return

<!DOCTYPE html>
en/public/developer/template_system/tags/headelement/doctype.txt · Last modified: 2013/04/01 14:02 by svanderclock