Skip to content

mkp-textpattern/mkp_url_parameters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

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
Version 1.1: October 29th, 2014 (added Subdirectory Check)
Version 1.2: June 3rd, 2016 (added Textpattern 4.6 Tag Registration and uses isset to prevent PHP errors from being generated)

About

A Textpattern Plugin for creating Date-Based Archives

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages