Topic-icon setMetaData extension

Active Subscriptions:

None
14 years 4 weeks ago #3444 by gabore
setMetaData extension was created by gabore
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 :D
The topic has been locked.
Support Specialist
14 years 3 weeks ago #3455 by alzander
Replied by alzander on topic setMetaData extension
Thanks for submitting this. I will pass it along to the other developers and we will get back to you as soon as possible.
The topic has been locked.
Support Specialist
14 years 6 days ago #3567 by alzander
Replied by alzander on topic setMetaData extension
gabore,

We hired a developer to help us make the changes you were requesting to the setMetaData plugin. If we email you a copy, can you test it out for us before we make it available for everyone?

Thanks for your help!
The topic has been locked.
Active Subscriptions:

None
14 years 6 days ago #3568 by gabore
Replied by gabore on topic setMetaData extension
Yes I would be glad to help.
The topic has been locked.
Support Specialist
14 years 5 days ago #3569 by alzander
Replied by alzander on topic setMetaData extension
Thanks. I just PM'd you a link. Let me know how your testing goes. Thanks again for the suggestions.
The topic has been locked.
Active Subscriptions:

None
14 years 5 days ago #3575 by gabore
Replied by gabore on topic setMetaData extension
I installed the plugin and it seems to be doing exactly what I wanted - checked the page source and all the tags were added.
It's nice to have the 'scheme' property, too - though I had to look it up what it is for :D
The topic has been locked.
Support Specialist
14 years 5 days ago #3576 by alzander
Replied by alzander on topic setMetaData extension
Cool. Glad it works.

We can add a better description to scheme so people don't have to go look it up. I don't know what it means, either, so I will have to look it up to add the description :D

If it has your thumbs up, I will go ahead and package it up and release it for everyone else.


Thanks again for your suggestion and help testing.
The topic has been locked.
Active Subscriptions:

None
14 years 5 days ago #3578 by gabore
Replied by gabore on topic setMetaData extension
It definitely has my thumbs up. Like this it should become more popular. Well, it is a great help anyway if you want to avoid rewriting (and in some cases breaking) main template files.
The topic has been locked.
Support Specialist
14 years 1 day ago #3614 by alzander
Replied by alzander on topic setMetaData extension
Thanks for all your help. I will try to make it available for the rest of the world as soon as I can.
The topic has been locked.