mkp_url_parameters

Posted

mkp_url_parameters

This tag examines the url of the current page and populated four variables: y for year, d for day, m for month, and monthtitle (the name of the month referenced in m). With access to those bits of information, your Textpattern install can be customized to do Yearly, Monthly and Daily Archives in a manner similar to what you may have seen from some other CMS.

Acknowledgements

There was an earlier version of this plugin called mkp_archives that I lost when the Textdrive hosting service went down. But I think this one is actually an improvement anyway. Also thanks to adi_gps and smd_if for some definite inspiration.

Links

mkp_url_parameters

Just use <txp:mkp_url_parameters /> at the top of a page or form where you need to capture URL information. For a better explanation, you will want to visit the Demo Site.

Attributes

None

Examples

<txp:mkp_url_parameters />

Release History

Version 1.0: October 22nd, 2014

Author
Categories 2014, October