[pmwiki-users] Page revision number
Ryan R. Varick
rvarick at gmail.com
Sun Oct 8 22:29:43 CDT 2006
Exactly what I was looking for; and acceptable behavior. Thank you.
Ryan
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.
>
> Pm
>
More information about the pmwiki-users
mailing list