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.
Image: rah_get_date
List of features
- Ouput date from
?date=and/or?month=get values. - Format date just like you can with
<txp:posted />.
Requirements
Minimum requirements:
- TXP 4.x.x+
Recommended:
- PHP 5.1.0+
- TXP 4.0.8+
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
- First release.