Thank you so much on your quick reply, I solved the problem differently but this solution is also great, I found on mamboserver one old post and used code from there to fill global tags when there are none generated for the page, and if the page has its own meta tags then to use its own, without using global. This is the code and files I edited:
in /includes/joomla.php after function appendMetaTag I have added
Code:
function addIfEmptyMetaTag( $name, $content ) {
$name = trim( htmlspecialchars( $name ) );
$n = count( $this->_head['meta'] );
for ($i = 0; $i < $n; $i++) {
if ($this->_head['meta'][$i][0] == $name) {
$content = trim( htmlspecialchars( $content ) );
if ( $content ) {
if ( !$this->_head['meta'][$i][1] ) {
$this->_head['meta'][$i][1] = $content ;
} else {
return;
}
}
return;
}
}
$this->addMetaTag( $name , $content );
}
and changed in /includes/frontend.php
$mainframe->appendMetaTag( '...
to:
$mainframe->addIfEmptyMetaTag( '...
This is exactly what I needed, but your solution would also do.
Many thanks once more
