PluginManagerTags

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

3 TrackBacks

PluginManagerTags from MT Plugin Directory on August 25, 2003 2:06 AM

For use with the Plugin Manager.... Read More

I finally upgraded to MT 2.661. Wanna know why? Because of David Raynes's Optional-Redirect v0.11 That's right. You can mouse over your commenter's names again, without seeing your own url. I know there was a good reason for that feature... Read More

Plugins galore! from Glimpse of a Grrl on April 21, 2004 12:04 AM

I had no idea I had so many plugins installed. I think I'd better remove the ones I'm not using.... Read More

6 Comments

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?

Leave a comment

Recent Entries

  • Plugin Writing 101

    So, I’m planning on writing up some entries about various aspects of plugin development. While I have a couple topics already in mind, I thought...

  • The Olympics Make Me Want To Compete Again

    Every time the Olympics come around (most the summer ones) I always start to delude myself into thinking I could complete once again in the...

  • Minimalist plugins are fun!

    Last night I whipped up one of the smallest plugins I’ve ever written. It is so small in fact that I was able to stuff...

  • Feedburner Widget on MT News

    Movable Type News A WordPress 2.5 Upgrade Guide: And of course there are lots of third-party plugins for the MT dashboard, to integrate statistics and...

  • AD&D Monster Stats for the Presidential Canditates

    Charles Stross (scifi author, D&D nerd, and former perl columnist) posted Politics as she is Played with 3d6: The recent death of Gary Gygax, who...

Close