API15:JApplication/addMetaTag
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
Contents |
Description
Deprecated, use JDocument->setMetaData instead.
Description:JApplication/addMetaTag
Syntax
addMetaTag($name, $content, $prepend= '', $append= '')
| Parameter Name | Default Value | Description |
|---|---|---|
| $name | Name of the metadata tag | |
| $content | Content of the metadata tag | |
| $prepend | Deprecated, ignored | |
| $append | Deprecated, ignored |
Defined in
libraries/joomla/application/application.php
Importing
jimport( 'joomla.application.application' );
Source Body
function addMetaTag( $name, $content, $prepend = '', $append = '' ) { $document=& JFactory::getDocument(); $document->setMetadata($name, $content); }
[Edit See Also] SeeAlso:JApplication/addMetaTag
Examples
<CodeExamplesForm />
