| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Document |
JDocumentHTML |
setMetaData |
setMetaData() |
Never | Work in Progress |
Sets or alters a meta tag. This function is called by the setMetaContentType method to set the http-equiv tag.
void setMetaData ( $name, $content, $http_equiv )
| $name | string | is a string containing the name of the meta tag or http-equiv tag to set. |
| $content | string | is a string containing the content of the meta tag or http-equiv tag. |
| $http_equiv | boolean | is a flag that specifies whether or not this meta tag should be an http-equiv tag. This parameter is optional and if omitted defaults to false. |
Set a meta tag.
Example
global $mainframe; $document =& JFactory::getDocument(); $document->setMetaData( 'Publisher', 'Joomla! Documentation Team' );
might add the following tag to the head block:
Result
<meta name="Publisher" content="Joomla! Documentation Team" />