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.

Latest news

  • ProcessWire Weekly #561
    In the 561st issue of ProcessWire Weekly we're going to check out the latest core updates, share recent support forum highlights and online resources, and more. Read on!
    Weekly.pw / 8 February 2025
  • ProcessWire 3.0.244 new main/master version
    ProcessWire 3.0.244 is our newest main/master/stable version. It's been more than a year in the making and is packed with tons of new features, issue fixes, optimizations and more. This post covers all the details.
    Blog / 18 January 2025
  • Subscribe to weekly ProcessWire news

“We chose ProcessWire because of its excellent architecture, modular extensibility and the internal API. The CMS offers the necessary flexibility and performance for such a complex website like superbude.de. ProcessWire offers options that are only available for larger systems, such as Drupal, and allows a much slimmer development process.” —xport communication GmbH