rah_get_date

Published under current TXP projects

The plugin, rah_get_date, outputs date and time from the requested url. Supports Textpattern’s inbuild date and month -GET variables, and outputs formated date based on those two GET values. That way you can, for example, output month header to month seperated article listing pages.

Download rah_get_date v0.1

Image: rah_get_date

Image: rah_get_date

List of features

Requirements

Minimum requirements:

Recommended:

Installation and usage

The basic method stands: paste plugin code to the plugin install textarea and run the automatic setup. Activate the plugin, and you are ready to use the new tag, <txp:rah_get_date /> like others.

Attributes

The tag is <txp:rah_get_date /> and attributes for it follow.

format
Date format used to output the date. Any valid strftime() string value since iso8601, w3cdtf, or rfc822.
Default: format="%Y %B" Example: "%Y %m %d".

Example

<txp:rah_get_date format="%Y %B" />

Outputs "2009 March" if requested URI is http://mysite.com/path/?month=2009-3.

Changelog

Version 0.1