EE 1
EE 2
Entry Age
Developer
3rd Party (Free)
Compatibility
- LG Addon Updater
- Multi Site Manager
- Stand Alone Entry Form
Requirements
- jQuery for the Control Panel
Tags
Returns a configurable warning message if the entry being viewed is older than a certain age.
Example 1, including HTML-formatted warning message:
{exp:entry_age unit="days" max_age="90" entry_date="{entry_date}"}
<section class="highlight">Warning: This article is older than 90 days and may contain inaccurate information. Please use the information below at your own risk.</section>
{/exp:entry_age}
Example 2, using default warning message:
{exp:entry_age unit="days" max_age="90" entry_date="{entry_date}"}
Three parameters can be passed:
- ‘unit’ :
- pick one, based on your requirements. This setting will default to ‘days’ if not specified.
- ‘max_age’ :
- The maximum age of the entry before the warning message will be shown. This setting will default to 90 if not specified. Ommiting this parameter may result in fairly useless data if used with anything other than ‘days’ above.
- ‘entry_date’ : Because this is my first plugin I’m yet to figure out how to get the current entry’s date inside the plugin, forcing me to require it as a parameter. :( For that reason, this parameter should only be ‘{entry_date}’ as shown above.
The text inside the {exp:entry_age}{/exp:entry_age} tag pairs is the text that will be displayed if the entry is older than the specified date. Ommiting this parameter will display the default value set above, if the entry’s age does not meet requirements.
Entry Age Links
This entry was last updated September 6, 2011, 11:17 am.
Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!
There are no reviews for this add-on yet.
What are you waiting for? Rate it and review it!