Copied to clipboard

Flag this post as spam?

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


  • Gary 80 posts 377 karma points
    Sep 05, 2016 @ 10:18
    Gary
    0

    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

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Sep 05, 2016 @ 11:52
    Dan Diplo
    100

    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

  • 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