Archive Message
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
There is a module to expire content on a certain date, but we don't want those articles to disappear, we want them flagged with a centered red line of text across the top that reads "This article is archived. Click here for more recent articles". This message displays for any article older than six months and is very helpful.
I'd like to create a module called "Archive Message" that would have the following configuration options. Any thoughts, suggestions or additions at this point are appreciated since I'm just getting started on it.
These are the configuration parameters I anticipate including:
- Content Types -- check boxes of which Content Types are looked at by the module. For example, news_articles might be archived, but about_us pages probably wouldn't be. Any content type that isn't checked will be ignored.
- Message -- A short message to display when an article is archived, such as "This article is archived. Click here for more recent articles". Do you think it would be worth the extra coding to:
- Add a different message per content type
- Add different messages for different languages
Doing both of these things could result in an enormous amount of configuration.
- Archive Days -- the number of days after which a content type is considered "archived". The default will be 180 (half a year).
- Archive Date Field -- the date field to used to check whether an article is archived. The default will be the node creation date, but sometimes users might want to check against a different date field.
- CSS Class -- the CSS class to use for the archive message. A convenience for users who don't want to use, or don't know enough about using, a stylesheet. The "archive_message" class will be exposed by the module so that CSS can be used in theming with this module also.
The message will have a default weight of zero but can be dragged into a different position by editing the content type(s) on which it appears.
Original Idea by : @jsruzicka
