Actions

JDocumentHTML/getHeadData

From Joomla! Documentation

Revision as of 17:45, 7 September 2008 by Chris Davenport (Talk | contribs)

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

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

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