[pmwiki-users] Page revision number

Jens Schiffler jens.schiffler at gmx.de
Mon Oct 9 09:59:48 CDT 2006


** Reply to message from "Ryan R. Varick" <rvarick at gmail.com> on Sun, 8 Oct
2006 23:29:43 -0400


> On 10/8/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> > 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.

For the sake of completeness:

http://www.pmwiki.org/wiki/Cookbook/JJSEditRev 

adds another revision number attribute and page variable which is only updated
when the content of the page has changed. 

Jens




More information about the pmwiki-users mailing list