soo_modified

Summary:

Tags for showing and comparing article modification information

soo_modified version 0.1.2, 2.3 KB
(If it won’t install try the compressed version)

Full plugin help text

Courtesy soo_plugin_display


soo_modified

This is a plugin for Textpattern.

Contents

Overview

Inspired by ob1_modified, soo_modified includes tags for dealing with article modification information. These supplement the basic function offered by the core modified tag.

soo_modified_author

Output the name of the author who most recently modified the current article.

<txp:soo_modified_author />

Attributes

soo_if_modified

Conditional tag that compares the current article’s modification date to its posted date.

<txp:soo_if_modified>
...
<txp:else />
...
</txp:soo_if_modified>

Attributes

By using a date format that doesn’t include the time of day, this tag will evaluate to true only if the last-modification stamp is on a different day than the posted stamp.

soo_if_modified_author

Conditional tag that compares the author who most recently modified the current article to the article’s author, or to the specified author.

<txp:soo_if_modified_author>
...
<txp:else />
...
</txp:soo_if_modified_author>

Attributes

If neither attribute is used, the tag will compare the author who last modified the article to the author who posted it.

Notes

Two of the tags, soo_modified_author and soo_if_modified_author, can generate one or more database queries. This is unlikely to have a noticeable effect on performance, except possibly for very large article lists. (The plugin uses static variables to minimize the number of calls, but each distinct article on the page still generates at least one call.)

Version History

0.1.2 (2017/2/15)

0.1.1 (2011/1/1)

0.1.0 (2010/12/31)

Posted 2010-12-31 (last modified 2017-03-13)