Actions

Difference between revisions of "JDocument/getMetaData"

From Joomla! Documentation

(New page: ===Syntax=== string getMetaData( $name, $http-equiv ) where: {| !Argument !Data type !Description !Default |- |$name |string |Name of meta data item. If $name is 'description' or 'genera...)
 
m (Added table formatting.)
Line 3: Line 3:
  
 
where:
 
where:
{|
+
{| class="wikitable"
 
!Argument
 
!Argument
 
!Data type
 
!Data type

Revision as of 17:34, 7 September 2008

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