Actions

Difference between revisions of "JDocumentHTML/getHeadData"

From Joomla! Documentation

(New page: Returns the data destined for the HTML <head> section in array form. ===Syntax=== array getHeadData() The array returned contains the following entries: {| class="wikitable" !Entry !Type ...)
 
m (Typo)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
Returns the data destined for the HTML <head> section in array form.
 
Returns the data destined for the HTML <head> section in array form.
 +
 +
Note: this only returns the data added by the set Methods here. It will not return data about files linked directly from html in the template head.
 +
 
===Syntax===
 
===Syntax===
 
array getHeadData()
 
array getHeadData()

Latest revision as of 06:30, 27 December 2008

Returns the data destined for the HTML <head> section in array form.

Note: this only returns the data added by the set Methods here. It will not return data about files linked directly from html in the template head.

Syntax

array getHeadData()

The array returned contains the following entries:

Entry Type Field in HTML <head> section Get method Set method
title string <title> getTitle setTitle
description string <meta name=”description” ... /> getDescription setDescription
link string getLink setLink
metaTags array <meta .... /> getMetaData setMetaData
links array <... /> addHeadLink
styleSheets array <link rel=”stylesheet” ... /> addStyleSheet
style string <style ... /> ... </style> addStyleDeclaration
scripts array <script ... src=”...”></script> addScript
script string <script ...> ... </script> addScriptDeclaration
custom string ... addCustomTag

Example

See also