Add metents metents for each joomla article

I would like to add open facebook tags on my joomla website . I edited index.php and added manually:

<head> <title>The Rock (1996)</title> <meta property="og:title" content="The Rock"/> <meta property="og:type" content="movie"/> <meta property="og:url" content="http://www.imdb.com/title/tt0117500/"/> <meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/> <meta property="og:site_name" content="IMDb"/> <meta property="fb:admins" content="USER_ID"/> <meta property="og:description" content="A group of US Marines, under command of a renegade general, take over Alcatraz and threaten San Francisco Bay with biological weapons."/> </head> 

Thus, meta tags apply to all pages of my site.

How to add different meta tags for each Joomla article?

+4
source share
3 answers

You can use one of the Open Graph plugins for standard Joomla content if you want. Perhaps this is: http://itprism.com/free-joomla-extensions/open-graph-meta

+4
source

The basic method for stitching meta tags is explained in this article .

 $opengraph = '<meta property="og:title" content="'.$game->title.'"/>' ."\n"; $opengraph .= '<meta property="og:type" content="'."BLOG_replacewithyourtype".'"/>' ."\n"; $opengraph .= '<meta property="og:url" content="'. $myabsoluteurl.'"/>' ."\n"; $opengraph .= '<meta property="og:image" content="'."http://YOURSITE.com/.../images/".$blog->imagename.'"/>' ."\n"; $opengraph .= '<meta property="og:site_name" content="'."YOUR SITE TITLE".'"/>' ."\n"; $opengraph .= '<meta property="fb:admins" content="'."YOUR FACE BOOK DEVELOPER CODE".'"/>' ."\n"; //add the tags to the head of the page;[/ $document->addCustomTag($opengraph); 
+6
source

You can add a specific meta to each article through the navigation menu at the end of the administration. Each parent and child have their own meta-fields located on the drop-down lists on the right side when viewing a specific navigation item.

+1
source

All Articles