Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There is currently no module that will expire stickiness, I thought this module is the closest. Any suggestions?
Comments
Comment #1
jonathan1055 CreditAttribution: jonathan1055 commentedHello David,
This is a nice idea and would be very useful. There has been talk in previous scheduler issues with people wanting to expand the capabilities, eg #14159: Schedule promote/demote of nodes, #276376: Make scheduler more generic?, #773510: Integration with Rules module, #1092934: Scheduled promotion / demotion from Front page
I think the general plan (as far as Eric in concerned, and he is the chief maintainer) is that scheduler should remain simple and lightweight, and that any extra functionality should be catered for in a general, powerful way rather than hardcode lots of specific extras in the module itself.
So, yes it will/may be done, but will be part of a bigger expansion of scheduler's capabilities. Is that right, Eric?
Jonathan
Comment #2
jonathan1055 CreditAttribution: jonathan1055 commentedPreviously Eric has said
This also applies to scheduling the sticky/unsticky value.
Another related issue is #1620632: add show/hide on <front> page functionality
Comment #3
jonathan1055 CreditAttribution: jonathan1055 commentedComment #4
jonathan1055 CreditAttribution: jonathan1055 commentedRe-activating this issue so we can discuss it as part of the 8.x development
Comment #5
AnybodyNice idea to also control sticky on top or frontpage with this module! +1
Comment #6
frankdesign CreditAttribution: frankdesign at Designit commentedIs there any update on this? Or are there any other options to allow automatic removal of Sticky on a specific date?
Thanks
F
Comment #7
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedHi frankdesign,
This has not been built directly into Scheduler, but could be achieved using the Scheduler hooks scheduler/-/blob/8.x-1.x/scheduler.api.php and the Scheduler event subscribers scheduler/-/blob/8.x-1.x/src/SchedulerEvents.php - see the Scheduler test modules for examples of these in action.
You would need a custom module to implement the hooks and/or events. This would also need to alter the edit form to add a checkbox or something to allow the user to indicate "instead of unpublishing make this unsticky". If you are up to doing some coding on a custom module I can help and advise, but at the moment I don't have the time to write it myself. But it could become a sub-module of Scheduler, so may well be worth investing some time on it later.
For reference, #1092934-17: Scheduled promotion / demotion from Front page comment #17 and #18 discussed a generic forward approach using actions plugins. This would be a long-term goal.