Jump to content

New module (PageAutomation (Copy, hide, delete, publish, unpublish, ...))


Roych
 Share

Recommended Posts

Hello,
Because I was in need of such a thing but there was nothing that I could find, I had to create my own. I'm sharing here, so maybe someone will find it useful.
My second module, Use at your own risk, there may be some mistakes, please if you find them, let me know!

Right now the module mostly works with datetime field!!! This was what I was going for actualy.

 

Description Page Automation Module for ProcessWire

Description:
The Page Automation module automates various page management tasks in ProcessWire, such as copying, cloning, deleting, publishing, hiding, and more based on predefined conditions. It allows users to set triggers based on a page's field values and perform automated actions without manual intervention. The module integrates with LazyCron for scheduling periodic checks.

Key Features:

  • Perform actions like copy, clone, delete, publish, hide/unhide automatically.
  • Configure conditions based on date/time fields (e.g., "older than 1 day").
  • Schedule actions with flexible cron intervals (every minute, hour, day, week, or year).
  • Supports applying actions only to pages using specific templates.
  • Option to assign a different template to cloned/copied pages.
  • Logs all automated actions for easy tracking.

Requirements:

  1. ProcessWire 3.x or later.
  2. LazyCron Module (it won't work without it).

Setup Instructions:

  1. Install the module through the ProcessWire admin Modules upload by File upload.
  2. Configure the conditions, templates, and actions via the module settings.
  3. (Optional) Install LazyCron for time-based automation.
  4. Verify that the automation_processed checkbox field is automatically created for tracking processed pages.

Once configured, the module will automatically handle repetitive page management tasks based on your specified conditions, saving time and effort.

Important!
Uppon install the module will create a new field "automation_processed" which you must add to the main template (template for action or make it global), if not you'll end up with a bunch of copies. This field tells the module that the page was already proccessed, so it will leave it alone.
 

 

I hope u like it 😉

You can download it here:
PageAutomation.zip

Edited by Roych
Mistake in the title ;)
  • Like 4
Link to comment
Share on other sites

  • Roych changed the title to New module (PageAutomation (Copy, hide, delete, publish, unpublish, ...))

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...