Actions

JDocumentHTML/getHeadData

From Joomla! Documentation

Revision as of 06:30, 27 December 2008 by GreyHead (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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