[pmwiki-users] Is there a way to display the number of revisions for a page?
Noel Llopis
nll_pub at convexhull.com
Sun Jan 30 13:14:46 CST 2005
On Sunday 30 January 2005 09:06, Patrick R. Michaud wrote:
> It's working for me -- see http://www.pmwiki.org/wiki/Test/RevMarkup .
> The (complete) code I used is:
>
> <?php
> Markup('{$Rev}', '{$var}',
> '/\\{\\$Rev\\}/e',
> "@\$GLOBALS['PCache'][\$pagename]['rev']+0");
> ?>
Ah, it seems that it works inside the wiki body, but not when I put it as
part of the template. I was hoping to put this in my template:
<a href='$PageUrl?action=diff'
title='$[History of this page]'>$[History]</a> {$Rev} |
Is there a way to expose that {$Rev} variable as a php variable so we can
use it just like $Version for example?
--Noel
Games from Within
http://www.gamesfromwithin.com
More information about the pmwiki-users
mailing list