By headless_pnub on
It it possible to expire a post after a certain number of days (say 90 days) so that after that point it is no longer viewable?
Thanks,
Pnub
It it possible to expire a post after a certain number of days (say 90 days) so that after that point it is no longer viewable?
Thanks,
Pnub
Comments
scheduler module
You can check out the scheduler module. It is not officially released for 4.7, but is in active development. It can unpublish at a given time.
Automatically Unpublish?
This works for manually setting a post on or remove post date, but i would like all posts to automatically be removed after say 90 days from the date they were published. Is this possible with the scheduler module or is there another way to achieve it?
Thanks,
Pnub
I would right a script that
I would right a script that changes the db field from published to unpublished for all entries older than 90 days and add it as a daily cron.
scheduler module
You can check out the scheduler module. It is not officially released for 4.7, but is in active development. It can unpublish at a given time.
publish / unpublish on date
you may also want to read http://www.lullabot.com/articles/how_to_create_a_publish_on_option_for_nodes