Timeline for Countdown timer for schedule unpublish date
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 12, 2013 at 20:30 | vote | accept | Mehrdad201 | ||
Oct 7, 2013 at 17:45 | comment | added | Mehrdad201 | Dear Amarnath Ravikumar. Thanks a lot for your solution. It works fine but this block only works on node page. if you have multiple nodes (that each of them has different unpublish date) in a single page that are collected via a view this blocks can't work. Also my plan is inject the counter into view field. I created a view that collect all nodes that have unpublish date (and status is published) and there is field named "unpublish countdown" that shows seconds till timer finish date/time. Do you have any solution for this scenario? Thanks a lot in advance for your help. | |
Oct 7, 2013 at 16:06 | comment | added | Amarnath Ravikumar |
onExpiry is a Javascript callback - so, no, you probably won't be able to run cron but you can redirect to a custom page with a token from which you can then call scheduler_cron() or more specifically _scheduler_unpublish() . Alternatively, you can make an AJAX request once the countdown expires to the same page (as above) and respond as you see fit.
|
|
Oct 7, 2013 at 15:06 | comment | added | Mehrdad201 | thanks a lot fro your solution. I will try your code as soon as possible. But I have a question. in "onExpiry" event, are we able to run cron? because after run cron, the expired node (base on unpublish date) will be hidden. | |
Oct 7, 2013 at 14:47 | history | answered | Amarnath Ravikumar | CC BY-SA 3.0 |