Content last modified Monday 6 March 2017
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
Article modified:
15 Jul 2005

If there is a comment form at the Information URL, you may want to leave your comments/questions there or at the Forum thread for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (1)

Keith Reeder:

Just what I needed for the front page of my site so that I don’t have to remember to hardcode an “Updated” flag every time I change something…

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern