Publish a page on a specific date and time

matthew.wren's Avatar

matthew.wren

24 May, 2013 01:53 PM

Is there a way to publish a single page on a specific date and time?

  1. Support Staff 1 Posted by Tim on 24 May, 2013 06:46 PM

    Tim's Avatar

    Hi Matthew,

    I'm thinking you could accomplish this by doing the following:

    • Edit the Page in question and set the Start Date field to just a couple of minutes prior to the time you want the Page to be published. This will prevent the Page from being eligible for publishing until just a few minutes before it is scheduled to be published.
    • Create a new Publish Set and add this single Page to it. In the Cron Expression field, enter the Cron expression for the date/time that you wish to publish the Page. For example, an expression of 0 15 12 20 FEB ? 2 would have published the Publish Set at 12:15pm on February 20th of this year.

    Let me know if this helps!

  2. 2 Posted by matthew.wren on 24 May, 2013 07:41 PM

    matthew.wren's Avatar

    Based on that wiki you provided, if wanted to publish on Saturday May 25th at noon, the cron expression would be:

    0 12 25 May Sat
    

    I feel like I'm missing something though or didn't quite understand it

  3. 3 Posted by Ryan Griffith on 29 May, 2013 03:59 PM

    Ryan Griffith's Avatar

    Hi Matthew,

    Apologies for the late response, were you able to get your cron expression working?

    In order to specify the month and day of week, you must use the numeric representation. For example, to run the job every year on May 25 @ 12:00PM, you would use 0 0 12 25 5 ? *. If you only need it to run once, you can use the same notation and then simply remove the job once the date has passed (it seems like specifying a year doesn't work in all environments/expressions).

    Here is a great tool for generating cron expressions and an accompanying tutorial that may be a bit more understandable than Wikipedia.

    Please let me know if you have any questions.

    Thanks!

  4. Ryan Griffith closed this discussion on 10 Jun, 2013 03:17 PM.

Discussions are closed to public comments.
If you need help with Cascade CMS please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

26 Aug, 2016 01:19 PM
25 Aug, 2016 03:02 PM
25 Aug, 2016 12:50 PM
24 Aug, 2016 08:43 PM
24 Aug, 2016 07:20 PM
21 Aug, 2016 01:20 PM