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 :)
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!) :)
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
Accidentally posted from corporate account (and Delete didn't work for some reason), just replying so that I get emails :)
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
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!) :)
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.
is working on a reply...