Actions

DocType header for templates

From Joomla! Documentation

Revision as of 11:59, 9 April 2010 by Dynedain (Talk | contribs)

Current thinking is that XHTML 1.0 Transitional should be used for Joomla! templates.

Recommended DocTypes

<translate> List of recommended DocTypes for different circumstances:</translate>

  • HTML5: <!DOCTYPE html>


Joomla Internal XML DocTypes

Joomla! 1.5 Internal Doctypes

List of doctypes used by the installation manifest XMLs for Joomla! and 3rd party add-ons.

  • Template Manifest (templateDetails.xml):

<!DOCTYPE install PUBLIC "-//Joomla! 1.5//DTD template 1.0//EN" "http://www.joomla.org/xml/dtd/1.5/template-install.dtd">

  • Component Manifest (component-install.xml):

<!DOCTYPE install PUBLIC "-//Joomla! 1.5//DTD component 1.0//EN" "http://www.joomla.org/xml/dtd/1.5/component-install.dtd">

  • Plugin Manifest (plugin-install.xml):

<!DOCTYPE install PUBLIC "-//Joomla! 1.5//DTD plugin 1.0//EN" "http://www.joomla.org/xml/dtd/1.5/plugin-install.dtd">

  • Module Manifest (module-install.xml):

<!DOCTYPE install PUBLIC "-//Joomla! 1.5//DTD module 1.0//EN" "http://www.joomla.org/xml/dtd/1.5/module-install.dtd">

Legacy DTDs

Up until December 2008, when dev.joomla.org was shut down, the Internal DTDs were hosted at dev.joomla.org/xml/1.5. Since that time, they have been moved to http://www.joomla.org/xml/dtd/1.5 and their locations corrected in Joomla 1.5.9. Some 3rd party Joomla! add-ons may be referencing the old locations, which may work, but is deprecated.

References about DocTypes

<translate> References about recommended DocTypes:</translate>