User Tools

Site Tools


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

This is an old revision of the document!


<#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> will be <!DOCTYPE html>

Default

if cfgpages does not contain the node doctype then default value will be returned :

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Example

<#doctype>

will return

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
en/public/developer/template_system/tags/headelement/doctype.1361087247.txt.gz · Last modified: 2013/02/17 11:47 by admin