Categories:
Author:
Current version:
1.0
About It:
Get it:
Rate it:
Flag it:
If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!
swf_section_updated
I created this plugin for a class website with a section that does not often get updates. I wanted the students to know when I added a tip to the tips section. swf_section_updated will check to see if a section has been updated in the past ‘n’ days. If the section has been updated, a message will be displayed.
Attributes:
- section choose the section you want to check for updated.
- message This is the message you want to display if the chosen section has been updated in the previous n days. The default value is
<sup>updated</sup>
- offset This is the number of days you want to display the message. If offset is not set, the default is 1 day.
Examples:
<txp:swf_section_updated />
With no attributes, the tag will return updated if the default section has been updated in the past day (24 hours).<txp:swf_section_updated section="about" />
With the section attribute set, this tag will display the default message if a new article has been created in the about section in the past day (24 hours).<txp:swf_section_updated section="about" offset="5" />
With the section attribute set, this tag will display the default message if a new article has been created in the about section in the past five days.<txp:swf_section_updated section="about" offset="5" message="<em>new!</em>" />
With the section attribute set, this tag will display new! if a new article has been created in the about section in the past five days.
Initially released:
2005-07-14
Posted here:
15 Jul 2005