Actions

JDocument/getMetaData

From Joomla! Documentation

Revision as of 02:28, 25 September 2013 by Sovainfo (Talk | contribs)

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

Syntax

string getMetaData( $name, $http-equiv )

where:

Argument Data type Description Default
$name string Name of meta data item. If $name is 'description' or 'generator' then the effect is the same as calling getDescription or getGenerator respectively.
$http-equiv Boolean True if meta data item requested is equivalent to an HTTP header field. false

Example

$doc =& JFactory::getDocument();
$content = $doc->getMetaData( “tag-name” );

See also