Just had a play with this. Would be great to be able to use a date field to kind of schedule when the page becomes inactive. i.e. so instead of using a select field of active/inactive as the condition, you can use a date field and then in the page rule pipe conditions be able to choose to make the page inactive after that date.
I was able to use the date field as the condition field, but didn’t have options to choose “if date is after”, “before”, “during” etc
Is there perhaps a work around for this by somehow having both a ‘date field’ and a ‘active/inactive select field’. Then somehow have some kind of rule that when the date field is reached then the select field switches to inactive which then triggers the pipe to make the page inactive?
Yeah I’m just playing around with that now.
So the scheduled task is…
If ‘closed’ date is before today - set active/inactive field to inactive. This then triggers the page rule that i’ve set up as per your tutorial.
Does this sound right? Or is there an easier way to deactivate a page based on date?
I guess it depends on your end goal. My initial thought was setting an “end date” field and using that in a task condition that says “when end date is today” — set status to inactive. Essentially the same thing you suggested. The task would run everyday checking that date field.