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 #518
    The 518th issue of ProcessWire Weekly brings in all the latest news from the ProcessWire community. Modules, sites, and more. Read on!
    Weekly.pw / 13 April 2024
  • ProFields Table Field with Actions support
    This week we have some updates for the ProFields table field (FieldtypeTable). These updates are primarily focused on adding new tools for the editor to facilitate input and management of content in a table field.
    Blog / 12 April 2024
  • Subscribe to weekly ProcessWire news

“The end client and designer love the ease at which they can update the website. Training beyond how to log in wasn’t even necessary since ProcessWire’s default interface is straightforward.” —Jonathan Lahijani