Support Joomla!

references:joomla.framework:application:japplication-prependmetatag

Table of Contents

prependMetaTag

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JApplication Method prependMetaTag Reference prependMetaTag() Never Internal Review

Adds a meta tag to the head block of the current document.

The method is deprecated and provided for backwards compatibility with Joomla! 1.0. It is scheduled to be removed in future versions. Use JDocument-setMetaData instead.

Syntax

void appendMetaTag ( $name, $content )

$name string is a string containing the name of the meta tag to add to the document.
$content string is a string containing the content to add to the meta tag.

Examples

Example

global $mainframe;

$mainframe->appendMetaTag( "metatagname", "metatagcontent" );

will insert the following meta tag into the head block of the current document:

<meta name="metatagname" content="metatagcontent" />

 
references/joomla.framework/application/japplication-prependmetatag.txt (562 views) · Last modified: 2007/09/22 02:46