Roych Posted December 1, 2024 Share Posted December 1, 2024 (edited) 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: ProcessWire 3.x or later. LazyCron Module (it won't work without it). Setup Instructions: Install the module through the ProcessWire admin Modules upload by File upload. Configure the conditions, templates, and actions via the module settings. (Optional) Install LazyCron for time-based automation. 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. PageAutomation_preview.mp4 I hope u like it 😉 You can download it here: PageAutomation.zip Edited December 10, 2024 by Roych Mistake in the title ;) 6 4 Link to comment Share on other sites More sharing options...
wbmnfktr Posted January 21 Share Posted January 21 It looks like the module is "single action" right now - so that we can only add ONE action that's performaned on whatever settings we apply. Is this correct or do I miss something to "Add another action" somewhere? Link to comment Share on other sites More sharing options...
Roych Posted January 22 Author Share Posted January 22 10 hours ago, wbmnfktr said: It looks like the module is "single action" right now - so that we can only add ONE action that's performaned on whatever settings we apply. Is this correct or do I miss something to "Add another action" somewhere? Yes, you are right, at the moment it only works with one action as I only needed it to work with datetime field but the overall idea was to add multiple actions. Maybe someday ... Link to comment Share on other sites More sharing options...
HMCB Posted May 2 Share Posted May 2 Can it also perform actions based on date/time plus a value of specific field(s) in a page? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now