So, I know that you need Rules to unpublish articles (after a certain time) based on date fields (https://groups.drupal.org/node/240678#comment-782543). But is this also possible with non date fields? When the user creates an article there should be a select list with items like 1 month
, 3 months
, 6 months
. After submitting the article is saved as unpublished, it is moderated and published by an admin and should then automatically be unpublished after the period selected by the user.
-
I think you will have to write some custom code. Have you experience in developing custom modules?– RobinCommented Mar 31, 2017 at 16:29
-
Unfortunately not, just a little bit with hooks in the theme file– 0711masterCommented Mar 31, 2017 at 16:36
Add a comment
|
1 Answer
If you don't want to write custom code you can use the https://www.drupal.org/project/scheduler module.
Quoting the description: "This module gives content editors the ability to schedule nodes to be published and unpublished at specified dates and times in the future "
-
I'm already using this module, but the problem is that the max. time can't be restricted Commented Mar 31, 2017 at 17:58