API17

Difference between revisions of "JDocumentRendererHead"

From Joomla! Documentation

(Updated to r1448:247ba8d88526)
m (preparing for archive only)
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
=={{JVer|11.1}} JDocumentRendererHead==
 
=={{JVer|11.1}} JDocumentRendererHead==
 
===Description===
 
===Description===
{{Description:JDocumentRendererHead}}
+
[[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.
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JDocumentRendererHead|Edit Descripton]]<nowiki>]</nowiki>
+
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.
</span>
+
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
Line 14: Line 14:
 
|-
 
|-
 
|public  
 
|public  
|[[JDocumentRendererHead::fetchHead/11.1|fetchHead]]
+
|[[API17:JDocumentRendererHead::fetchHead|fetchHead]]
 
|Generates the head html and return the results as a string.  
 
|Generates the head html and return the results as a string.  
 
|-
 
|-
 
|public  
 
|public  
|[[JDocumentRendererHead::render/11.1|render]]
+
|[[API17:JDocumentRendererHead::render|render]]
 
|Renders the document head and returns the results as a string.  
 
|Renders the document head and returns the results as a string.  
 
|-
 
|-
 
|}
 
|}
 
* '''Defined in''' libraries/joomla/document/html/renderer/head.php
 
* '''Defined in''' libraries/joomla/document/html/renderer/head.php
* '''Extends''' [[JDocumentRenderer/11.1|JDocumentRenderer]]
+
* '''Extends''' [[API17:JDocumentRenderer|JDocumentRenderer]]
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.document.html.renderer.head' );</source>
 
<source lang="php">jimport( 'joomla.document.html.renderer.head' );</source>
 
===See also===
 
===See also===
 
* {{JVer|11.1}} '''JDocumentRendererHead source code''' on [[jplatform:document/html/renderer/head.php|BitBucket]]
 
* {{JVer|11.1}} '''JDocumentRendererHead source code''' on [[jplatform:document/html/renderer/head.php|BitBucket]]
* {{JVer|11.1}} Subpackage [[Subpackage Document/11.1|Document]]
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage Document|Document]]
* [[JDocumentRendererHead|Other versions of JDocumentRendererHead]]
+
* [[API17:JDocumentRendererHead|Other versions of JDocumentRendererHead]]
{{SeeAlso:JDocumentRendererHead}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[SeeAlso:JDocumentRendererHead|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
 
===User contributed notes===
 
===User contributed notes===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JDocumentRendererHead
 
category=JDocumentRendererHead
category=CodeExample
+
namespace=CodeExample
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
Line 45: Line 43:
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JDocumentRendererHead]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 21:54, 24 March 2017

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JDocumentRendererHead[edit]

Description[edit]

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.

Methods[edit]

Visibility Method name Description
public fetchHead Generates the head html and return the results as a string.
public render Renders the document head and returns the results as a string.
  • Defined in libraries/joomla/document/html/renderer/head.php
  • Extends JDocumentRenderer

Importing[edit]

jimport( 'joomla.document.html.renderer.head' );

See also[edit]


User contributed notes[edit]

Code Examples[edit]