JDocumentRendererHead

From Joomla! Documentation
(Difference between revisions)
Jump to: navigation, search
(New page: '''JDocumentRendererHead''' is responsible for rendering the output for the <nowiki><head></nowiki> section of an HTML document. It is called whenever a <code><jdoc:include type="head" />...)
 
m (Added note about stylesheet cascade.)
Line 1: Line 1:
 
'''JDocumentRendererHead''' is responsible for rendering the output for the <nowiki><head></nowiki> section of an HTML document.  It is called whenever a <code><jdoc:include type="head" /></code> statement is encountered in the document template.
 
'''JDocumentRendererHead''' is responsible for rendering the output for the <nowiki><head></nowiki> section of an HTML document.  It is called whenever a <code><jdoc:include type="head" /></code> statement is encountered in the document template.
  
 +
Note that any internal stylesheet rules that may have been added by the [[JDocument/addStyleDeclaration]] method will be output '''after''' all the external stylesheet links (both the default ones and any that may have been added by calls to the [[JDocument/addStyleSheet]] method.  This ensures that the correct stylesheet cascade is preserved.
 
===Defined in===
 
===Defined in===
 
/libraries/joomla/document/renderer/head.php
 
/libraries/joomla/document/renderer/head.php

Revision as of 09:48, 11 December 2008

JDocumentRendererHead is responsible for rendering the output for the <head> section of an HTML document. It is called whenever a <jdoc:include type="head" /> statement is encountered in the document template.

Note that any internal stylesheet rules that may have been added by the JDocument/addStyleDeclaration method will be output after all the external stylesheet links (both the default ones and any that may have been added by calls to the JDocument/addStyleSheet method. This ensures that the correct stylesheet cascade is preserved.

Contents

Defined in

/libraries/joomla/document/renderer/head.php

Extends

Methods

Method name Description
fetchHead Renders the document head and returns the result as a string.
render Renders the document head and returns the result as a string.

Importing

Do not import this class directly; it is imported and instantiated by JDocument->loadRenderer.

See also

Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox