[pmwiki-users] Page revision number

Patrick R. Michaud pmichaud at pobox.com
Sun Oct 8 11:45:31 CDT 2006


On Thu, Oct 05, 2006 at 11:45:46PM -0400, Ryan R. Varick wrote:
> Looking through the pages in wiki.d, there seems to be a field that
> identifies each page's revision number.  Is there a variable that
> corresponds to this number?  I looked through the Variable index
> (http://pmwiki.org/wiki/PmWiki/Variables), but didn't see anything.  I
> think it would be kind of neat to add "rev. XX" to the timestamp.

Add the following to local/config.php:

    $FmtPV['$Revision'] = '$page["rev"]';

Then you can use {$Revision} to get the rev= number for a page.
Note that the rev= number identifies the number of times the
page file has been written, which is not necessarily the same as
the number of edits.

Pm




More information about the pmwiki-users mailing list