Automatically archives pages based on a Datetime field (e.g. /news/2013/01/03/some-news-item/).
ProcessDateArchiverProcessWire 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- Go to the Setup -> Date Archiver screen in the ProcessWire admin.
- Click on Add New Archiving Rule.
- Specify the template that should be archived (typically the news-item template).
- Specify the Datetime field that should be used to determine the date to archive by.
- Specify the template that should be used for creating year archives.
- Optionally specify the template that should be used for creating month archives.
- Optionally specify the template that should be used for creating day archives.
- 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- Install the module by placing
ProcessDateArchiver.module
in /site/modules/
. - Check for new modules on the Modules screen in the ProcessWire admin.
- Click Install for the Date Archiver Process.
- Go to the Setup -> Date Archiver screen in the ProcessWire admin.
- Click on Add New Archiving Rule.
- Specify the template that should be archived (typically the news-item template).
- Specify the Datetime field that should be used to determine the date to archive by.
- Specify the template that should be used for creating year archives.
- Optionally specify the template that should be used for creating month archives.
- Optionally specify the template that should be used for creating day archives.
- 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- Install the module by placing
ProcessDateArchiver.module
in /site/modules/
. - Check for new modules on the Modules screen in the ProcessWire admin.
- Click Install for the Date Archiver Process.
- Install the module by placing
ProcessDateArchiver.module
in/site/modules/
. - Check for new modules on the Modules screen in the ProcessWire admin.
- 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.