dev.michaelgravel.com

textpattern ~ code ~ css

Oct 20 2007

Plugin: mg_txpversion

The plugin <txp:mg_txpversion /> simply returns the version of your current Textpattern installation. You can use this in the head of your pages or in your RSS feed.

Download it: <txp:mg_txpversion />

Attributes

This plugin takes / has no attributes.

Examples

In a feed template, in the ‘channel’ portion of the feed:

<generator>http://textpattern.com/?v=<txp:mg_txpversion /></generator>

Notes on Usage

Could also be placed in the head of a standard template, or anywhere else where you might want to display the version of your txp installation.

Credits

This one is embarrassingly simple, but it was written by Michael Gravel.

Posted in text on October 20, 2007

No comments

Commenting disabled.

Text

Welcome to the Text archives. This is where I write about Textpattern, a lightweight, PHP-based content management system.

side image

Textpattern Plugins

I've made a few plugins for Textpattern that provide very modest additions to the software's existing functionality. Here they are: