ProcessDateArchiver by u-nikos

Automatically archives pages based on a Datetime field (e.g. /news/2013/01/03/some-news-item/).

ProcessDateArchiver

ProcessWire Date Archiver Process


Automatically archives pages based on a Datetime field (e.g. /news/2013/01/03/some-news-item/).

Behavior

  • When you add a page with a specified template, the module will automatically create year/month/day archives for it.
  • When you change the date in a specified Datetime field, the page is automatically moved to the correct year/month/day archive.
  • When moving or trashing a page, the module will automatically clean up empty year, month and day archives.

How to create an archiving rule

  1. Go to the Setup -> Date Archiver screen in the ProcessWire admin.
  2. Click on Add New Archiving Rule.
  3. Specify the template that should be archived (typically the news-item template).
  4. Specify the Datetime field that should be used to determine the date to archive by.
  5. Specify the template that should be used for creating year archives.
  6. Optionally specify the template that should be used for creating month archives.
  7. Optionally specify the template that should be used for creating day archives.
  8. Click Add Rule.

Tips and tricks

  • Configure the archive templates that will contain other archives to sort its children by name.
  • Configure the archive template that will contain the news items to sort its children by the specified Datetime field.
  • You will improve usability if you dont allow the user to create date archives manually.

How to Install

  1. Install the module by placing ProcessDateArchiver.module in /site/modules/.
  2. Check for new modules on the Modules screen in the ProcessWire admin.
  3. Click Install for the Date Archiver Process.

Copyright 2013 by Niek Bosch

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

Twitter updates

  • ProcessWire 3.0.187: This week we have some very useful new additions to both the core Repeater Fieldtype and the ProFields Repeater Matrix Fieldtype. This post covers all the details along with a couple of brief demonstration videos— More
    22 October 2021
  • ProcessWire 3.0.185 (dev) core updates, plus new Session Allow module— More
    17 September 2021
  • Three new ProcessWire Textformatter modules: Find/Replace, Markdown in Markup, and Emoji— More
    3 September 2021

Latest news

  • ProcessWire Weekly #389
    The 389th issue of ProcessWire Weekly we'll check out the latest core updates, introduce the Session Viewer module, and more. Read on!
    Weekly.pw / 23 October 2021
  • New Repeater and Repeater Matrix features
    This week we have some very useful new additions to both the core Repeater Fieldtype and the ProFields Repeater Matrix Fieldtype. This post covers all the details along with a couple of brief demonstration videos. 
    Blog / 22 October 2021
  • Subscribe to weekly ProcessWire news

“I am currently managing a ProcessWire site with 2 million+ pages. It’s admirably fast, and much, much faster than any other CMS we tested.” —Nickie, Web developer