User tests: Successful: Unsuccessful:
Pull Request for Issue # .
Enhance public function setMetaData() to allow setting og metas
For infos on og metas check: http://ogp.me
Apply the patch with patch tester
edit index.php on isis template and add
$this->setMetaData(
array(
"property" => "og:title",
"content" => "The Rock"
), '', ''
);
$this->setMetaData(
array(
"property" => "og:type",
"content" => "video.movie"
), '', ''
);
$this->setMetaData(
array(
"property" => "og:url",
"content" => "http://www.imdb.com/title/tt0117500/"
), '', ''
);
just before
?>
<!DOCTYPE html>
Inspect the rendered page through your browsers developers tools
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Labels |
Added:
?
|
Damn, I haven't tried that
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-02-09 18:10:00 |
Closed_By | ⇒ | dgt41 |
Is there something you can't do with the current API? In the
joomla.org
template we're doing this and it works fine:$this->setMetaData('og:site_name', $sitename, 'property');