Copied to clipboard

Flag this post as spam?

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


  • BOPRC Software 1 post 21 karma points
    Apr 29, 2013 @ 06:07
    BOPRC Software
    0

    Automate "remove at"?

    Hi,

    Our site has a large number of media releases on it, and our PR department wants outdated releases (ones that are more than a year old) to automatically disappear from the site. It seems that "remove at" is the best option here; set that to a year in the future and the media release will automatically be removed.

    However, they don't want to have to manually set that field for every single media release that they publish. Is there any way that I can set a default value (of "now, plus one year") for the "remove at" field? I don't even know where to begin with this one :)

    We're running Umbraco 6.0.3.

    Thanks,
    Chris

  • Chris Mahoney 242 posts 454 karma points
    Apr 29, 2013 @ 06:09
    Chris Mahoney
    0

    Accidentally posted from corporate account (and Delete didn't work for some reason), just replying so that I get emails :)

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Apr 29, 2013 @ 08:10
    Dave Woestenborghs
    0

    There is a package called standard values, maybe this let's you achieve this.

    Otherwise you can create a eventhandler that will set the remove at date on saving/publishing.

    Dave

  • Chris Mahoney 242 posts 454 karma points
    May 01, 2013 @ 00:56
    Chris Mahoney
    0

    Standard Values doesn't seem to do it so I've been looking into event handlers. Unfortunately the documentation is a bit lacking but it seems that it's changing in 6.1 so I'll wait for that version before doing anything (there's no rush with getting this automation working; I don't need to have it working until next year!) :)

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    May 01, 2013 @ 10:05
    Dave Woestenborghs
    0

    Hi Chris,

    You can can find the documentation for eventhandlers here : http://our.umbraco.org/documentation/Reference/Events/application-startup

    There is documentation for several versions there.

Please Sign in or register to post replies

Write your reply to:

Draft