Set page expiry date and notify admin

Talk about new features for CMSMS and modules.
Post Reply
jeronimo

Set page expiry date and notify admin

Post by jeronimo »

Hi all,

We have an ever growing site, and me as admin doesn't have a brain that grows along with it!! What would be ideal is the ability to set the expiry date of a page, not entirely dissimiliar from the way news articles work. However I don't want the page content to disappear. So when the date is up (or a few days before) I get an email.

The problem I have is that pages are being left with old content that is out of date. Ideally I'd like an automated system which reminds me to update the site when needed. Any ideas folks?
Christophe Lambrechts

Re: Set page expiry date and notify admin

Post by Christophe Lambrechts »

Possibly you can put in every page a little tag that takes a date as parameter. When the page is called the tag is runned and in the tag you compare the date with the actual date. If the actual date is smaller then the parameter you send an e-mail to your self with the page title.

Problem of this is that the page must be viewed before a mail can be send.

Hope it helps,
Christophe
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Set page expiry date and notify admin

Post by calguy1000 »

Each page has a 'last modified date' attribute.  It would be possible to write a module that notifies you if a page hasn't been modified in a certain number of days.  Also it would be possible to exclude certain pages from the notification.

Nothing exists in CMS to do this yet, but it's not technically difficult to do.  This would have to be an external script that was executed by cron or something though in order for it to work properly.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Feature ideas”