Content last modified Tuesday 24 August 2021
hop to #bottom
Categories:
Author:
Current version:
1.0
About It:
Get it:
Rate it:
  • Helpful?
  • 1 Yes
  • 0 No
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:

  1. section choose the section you want to check for updated.
  2. 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>
  3. offset This is the number of days you want to display the message. If offset is not set, the default is 1 day.

Examples:

  1. <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).
  2. <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).
  3. <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.
  4. <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.
Article Request Count:
Initially released:
2005-07-14
Posted here:
15 Jul 2005

You know you want to visit the Archives.
Published with Textpattern