I am developing a website where i have news articles. These news articles will have a retention policy of 12 months before they are "archived" (unpublished and moved to an archived folder). Then another 6 months time they will be removed/deleted from the site.
I have found this article from Fuji in 2011 and just wondered if this is still the best way of doing this or is there a better method of doing this in newer versions?
That code uses a lot of API methods that have either been removed from Umbraco 7 or deprecated. So whilst the principle is probably sound, you'd need to rewrite the code to use the latest API calls.
Archiving Old News Articles
I am developing a website where i have news articles. These news articles will have a retention policy of 12 months before they are "archived" (unpublished and moved to an archived folder). Then another 6 months time they will be removed/deleted from the site.
I have found this article from Fuji in 2011 and just wondered if this is still the best way of doing this or is there a better method of doing this in newer versions?
Kind Regards.
Previous Post from Fuji: https://our.umbraco.org/forum/using/ui-questions/24042-Archiving-news-items-with-a-Boolean
That code uses a lot of API methods that have either been removed from Umbraco 7 or deprecated. So whilst the principle is probably sound, you'd need to rewrite the code to use the latest API calls.
So see:
https://our.umbraco.org/documentation/Reference/Events/ContentService-Events
https://our.umbraco.org/documentation/Reference/Management/Services/ContentService
is working on a reply...