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 ,

Posted
Comments 1

What do you want to do next?

  • Modify or even delete this article? The article list is the place to start.
  • Change this site’s name, or modify the style of the URLs? It’s all up to your preferences.
  • Get yourself acquainted with Textile, the humane web text generator which comes with Textpattern? The basics are simple. If you want to learn more about Textile, you can dig into an extensive manual later.
  • Be guided through your Textpattern first steps by completing some basic tasks?
  • Study the Textpattern Semantic Model?
  • Add another user, or extend the capabilities with third party plugins you discovered from the central plugin directory at Textpattern Resources
  • Dive in and learn by trial and error? Then please note:
    • When you write an article you assign it to a section of your site.
    • Sections use a page template and a style as an output scaffold.
    • Page templates use HTML and Textpattern tags (like this: <txp:article />) to build the markup.
    • Some Textpattern tags use forms, which are building blocks for reusable snippets of code and markup you may build and use at your discretion.

There are a host of Frequently Asked Questions to help you get started.

Textpattern tags, their attributes and values are as well explained as sampled at the User Documentation, where you will also find valuable tips and tutorials.

If all else fails, there’s a whole crowd of friendly, helpful people over at the Textpattern support forum. Come and pay a visit!

Author
Categories ,