Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jonas Eriksson 930 posts 1825 karma points
    Jan 21, 2010 @ 10:12
    Jonas Eriksson
    0

    Publish date and unpublish date

    We tried using the publish date to automatically publish a node, but nothing happened. Do we need to add some setting for this to work?

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jan 21, 2010 @ 10:21
    Dirk De Grave
    0

    Nope, it should oob, only need to set a publish date (and not publish it obviously...)

     

    Cheers,

    /Dirk

  • Jonas Eriksson 930 posts 1825 karma points
    Jan 21, 2010 @ 11:10
    Jonas Eriksson
    0

    Ok, thanks, yep, hm, I do think that was made, but they might just have missed it. I'll try for myself.

  • Richard Soeteman 4054 posts 12927 karma points MVP 3x
    Jan 21, 2010 @ 13:33
    Richard Soeteman
    1

    Hi Jonas,

    This mechanism is build on top of the internal scheduler, should work oob if your site is running... So make sure the site is pinged once in a while.

    Cheers,

    Richard

  • Kenneth Solberg 227 posts 418 karma points MVP
    Jan 21, 2010 @ 13:46
    Kenneth Solberg
    1

    Checklist:

    - Server date/time
    - Don't click publish when you schedule a document, click save.


    Cheers,

    Kenny

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Jan 21, 2010 @ 14:24
    Morten Bock
    0

    Also, the scheduler doesn't start until 10 minutes after the appPool starts up.

  • Harald Ulriksen 207 posts 249 karma points
    Jan 21, 2010 @ 15:10
    Harald Ulriksen
    0

    While we're at it, any recommendations/how to on scheduled publishing from the API?

    Thanks,
    Harald

  • Seth Niemuth 275 posts 397 karma points
    Jan 21, 2010 @ 16:23
    Seth Niemuth
    0

    You could write a user control which publishes certain pages and then that usercontrol is called from the scheduled tasks. This thread explains in the beginning how to create a scheduled task in umbraco:

    http://forum.umbraco.org/yaf_postst8032_Scheduled-Job-Problem.aspx

    However, you will encounter the same limitations in that if umbraco has been inactive for a while then someone hits the site the timers are reloaded. Ismail in this thread says that you could schedule a task on the windows server box:

    http://forum.umbraco.org/yaf_postst5242_Are-Umbraco-scheduled-tasks-reliable.aspx

  • Jonas Eriksson 930 posts 1825 karma points
    Jan 24, 2010 @ 13:48
    Jonas Eriksson
    0

    Now I remembered to go back and check this, it did work, even with time. Nice!

    Thanks 2 all

  • Jonas Eriksson 930 posts 1825 karma points
    Jan 24, 2010 @ 14:04
    Jonas Eriksson
    0

    Now I think I found out what happened here,

    the user probably entered the date without time "2010-01-01". If I try that, the date is not being saved att all. When I add time also "2010-01-01 00:00" it is saved alright. Using the date chooser also works fine.

    I would like to either add a help text next to publish date (but I can not do that, can I?) or add an event handler to take care of date without time. Possible?

    This seems to be something that should be taken care of oob, right? I mean - it shoud be possible to add a date only. Can it be a formatting issue? We enter date in the format yyyy-MM-dd.

    Cheers

    Jonas

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Jan 24, 2010 @ 23:21
    Morten Bock
    1

    It might be related to the thread culture. I looked at the source once, and there is a lot(!) og .Parse stuff going on, so maybe it cannot parse it without time.

    Question is if an Eventhandler would help, since the Document object has a DateTime object representing the value. And if Umbraco cannot parse it into a DateTime, well then it will not help, since you cannot access it.

  • Jonas Eriksson 930 posts 1825 karma points
    Jan 25, 2010 @ 08:25
    Jonas Eriksson
    0

    Thanks for having a look Morten, I find this prb in more installations, would you suggest I add it as an issue in codeplex?

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Jan 25, 2010 @ 08:29
    Morten Bock
    0

    I think adding an issue would be fine. Or event better, finding the line of code in question, and submitting at patch with a better parser :-)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies