Ajd malo bolje pojasni što točno trebaš :)
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
<?php
// K2 OG Tags
$doc = & JFactory::getDocument();
$config = & JFactory::getConfig();
// Prepare image
if (empty($this->item->image)) {
$ogImage = JURI::root() . 'templates' . DS . JFactory::getApplication()->getTemplate() . DS . 'images' . DS . 'noimage.jpg'; // Ovdje je putanja do slike koja će se koristiti kad članak nema vezanu sliku... Putanja je napisana da gleda u images folderu aktivnog predloška
} else
$ogImage = substr(JURI::root(), 0, -1) . $this->item->imageSmall;
// Prepare description
if (!empty($this->item->introtext)) {
$ogDesc = substr(strip_tags($this->item->introtext), 0, 97) . '...';
} else
$ogDesc = substr(strip_tags($this->item->fulltext), 0, 97) . '...';
// Add og tags to document head
$doc->addCustomTag('<meta property="og:site_name" content="' . $config->getValue('config.sitename') . '"/>');
$doc->addCustomTag('<meta property="og:title" content="' . $this->item->title . '"/>');
$doc->addCustomTag('<meta property="og:image" content="' . $ogImage . '"/>');
$doc->addCustomTag('<meta property="og:description" content="' . trim(str_replace('"', '"', $ogDesc)) . '"/>');
$doc->addCustomTag('<meta property="og:url" content="' . htmlentities(JURI::getInstance()->toString()) . '"/>');
$doc->addCustomTag('<meta property="og:type" content="blog">');
?>
<meta property="og:description" content="<?php echo strip_tags(html_entity_decode($varijabla_u_kojoj_je_opis));?>"/>
Citat: etagure u 06. Prosinac 2012, 12:21
http://extensions.joomla.org/extensions/social-web/social-display/facebook-integration/14851
On ti izabere prvu sliku iz artikla
{"menu-anchor_title":"","menu-anchor_css":"","menu_image":"","menu_text":1,"page_title":"","show_page_heading":1,"page_heading":"","pageclass_sfx":"","menu-meta_description":"META_DESCRIPTION","menu-meta_keywords":"META_KEYWORD","robots":"","secure":0,"mega_showtitle":"1","mega_desc":"","mega_multicol":"0","mega_group":"0","mega_exclass":"","mega_width":"2","mega_subcontent":"0"}