LoginSignup
0
0

More than 5 years have passed since last update.

Joomlaでmetaタグを設定する

Posted at

JDocument::setMetaData() を使います。

/**
 * Sets or alters a meta tag.
 *
 * @param   string   $name        Value of name or http-equiv tag
 * @param   string   $content     Value of the content tag
 * @param   boolean  $http_equiv  META type "http-equiv" defaults to null
 *
 * @return  JDocument instance of $this to allow chaining
 *
 * @since   11.1
 */
public function setMetaData($name, $content, $http_equiv = false)

使用例

// 5秒後に $url へジャンプ
$doc = JFactory::getDocument();
$doc->setMetaData('refresh', '5;URL=' . $url, true);
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0