Hi, the standard way to render the tags is per Joomla! methods - they order it at the top of the code but with "name" attribute. Non standard method uses "property" but it is done non standard way so it is not ordered like by first method - but this has no influence on the function - it works still the same way (it does not matter which way it is ordered)
See the code for description:
Code: Select all
// Description
if ($this->params->get('description'.$suffix, '') != '') {
plgContentPhocaOpenGraphHelper::renderTag('og:description', $this->params->get('description'.$suffix, ''), $type);
} else if (isset($thisDesc) && $thisDesc != '') {
plgContentPhocaOpenGraphHelper::renderTag('og:description', $thisDesc, $type);
} else if ($config->get('MetaDesc') != '') {
plgContentPhocaOpenGraphHelper::renderTag('og:description', $config->get('MetaDesc'), $type);
} else if (isset($row->introtext) && $row->introtext != '' && $desc_intro == 1) {
$iTD = str_replace("\r\n", ' ', strip_tags($row->introtext));
$iTD = str_replace("\n", ' ', $iTD);
$iTD = str_replace("\n", ' ', $iTD);
plgContentPhocaOpenGraphHelper::renderTag('og:description', $iTD, $type);
}
1) description from plugin parameter is used
2) when there is no description then from meta description of article
3) when thre is no description then from meta description of site
4) when there is no description and it is allowed to use introtext ( can be set in plugin parameters) then the introtext is used.
Jan