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?
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?
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>
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
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
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
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).
Hope this helps.
Regards,
/Dirk
is working on a reply...