Hi
I was told to tell about how I imagine adding some features to this great plugin here: [url:1awprm6f]http://extensions.joomla.org/extensions/site-management/seo-a-metadata/9882[/url:1awprm6f]
So here's the idea: Add an 'Add new meta' button to the plugin that opens fields for 'content' + either 'name' or 'http-equiv'.
I was trying to 'hack' it together myself by adding a line to the plugins xml file:
<param name="http-equiv" type="text" default="" label="http-equiv" description="This is the http-equiv metadata to set." />
And also change some lines in the php code in the onAfterInitialise function:
// Try to get our http-equiv parameters
$http_equiv = $this->params->get('http-equiv', '');
$content = $this->params->get('content', '');
// If we have both a name and content, set it.
if($http_equiv && $content)
{
$document->setMetaData($http_equiv, $content);
}
So an http-equiv and a new content filed appeared in the plugin configuration, but it didn't become displayed on the page source. I would guess the
$document->setMetaData doesn't accept http-equiv.
Get back to me when you can