Copied to clipboard

Flag this post as spam?

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


  • Delete me 45 posts 66 karma points
    Oct 09, 2009 @ 12:03
    Delete me
    0

    Move node on date

    I have this structure backend:

    New events node -- new event node1
    -- new event node2

    Old events node -- old event node1
    -- old event node2

    All events have a date set by a datepicker. When an event is expired, i manually move it to "Old events". Is there a way to make Umbraco do this automatically?

    Thanks in advance,

    Mathias

  • Richard Soeteman 4054 posts 12927 karma points MVP 2x
    Oct 09, 2009 @ 12:08
    Richard Soeteman
    0

    Hi Mathias,

    I've written an example in the wiki section a while back. Check it out here (example 2 Auto archive news)

    Hope it helps you,

    Richard

  • Delete me 45 posts 66 karma points
    Oct 21, 2009 @ 13:58
    Delete me
    0

    Hi again

    Thank you for the great tutorial, it works!

    I have just one question: What event should I use, when I want the node to move "by itself" - not after save, when the date set by datepicker is expired?

    Thanks again,

    /Mathias

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Oct 21, 2009 @ 14:09
    Dirk De Grave
    0

    Mathias,

    You should go with a scheduled task to achieve such things. Scheduled tasks are plain old asp.net pages which are triggered upon time intervals. You'll have to 'register' those in a config file (umbracoSettings.config). 

    <scheduledTasks>
    <!-- add tasks that should be called with an interval (seconds) -->
    <!--    <task log="true" alias="test60" interval="60" 
                   url="http://localhost/umbraco/test.aspx"/>-->
    </scheduledTasks>

    Hope this helps.

    Regards,

    /Dirk

  • 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