Ben requested this a while ago, and I finally got a chance to sit down and write it tonight. PluginManagerTags provides a set of tags you can use in your templates to access data that the Plugin Manager stores.
Download one of the following files, unpack it, and place pm_tags.pl in your plugins/ directory:
The following tags are available:
- MTInstalledPlugins: container tag that provides you with a list of the installed plugins (as far as the Plugin Manager is aware)
- MTPluginName: the name of the installed plugin
- MTPluginVersion: the installed version of the plugin
Usage Example:
<ul>
<MTInstalledPlugins>
<li><MTPluginName> (<MTPluginVersion>)</li>
</MTInstalledPlugins>
</ul>
template_tags=MTInstalledPlugins,MTPluginName,MTPluginVersion
OOOoooooh, I *know* I'll be enjoying this plugin :) :) :) But the links aren't working yet - did you upload them into a different directory? ;)
I have a feeling that once I start playing with this one, I might come up with some other ideas to add to it ;) hee hee.
speaking of links, on my site i've got a manually-maintained list of all the plugins i use, which link to the mt-plugins.org page corresponding to each plugin, as a courtesy to the authors.
is it possible to have a tag MTPluginURL that would allow the link to be auto-generated?
dvd, that's a good idea, and one that I was thinking about too :) until David implements that idea, you could create it yourself... the plugin directory pages are all at http://mt-plugins.org/archives/entry/<$MTEntryTitle dirify="1"$>.php-- so I think that if you used the MTPluginName in its dirified form, you *should* be able to build links directly to the right pages. :)
thanks kristine, that worked a treat. :D
whilst i was at it, i thought of another tag: MTPluginDescription -- which i'd put in the link's title attribute.
david, perhaps you should pre-empt me and parse the every possible part of the plugins.xml file into separate tags. ;)
I right there with you dvd. I'm creating an about the site page, and would love to have descriptions of the plugins being used on my site.
Thanks David, this is a great script.
There should be a MTPluginCount tag also don't you think?