[pmwiki-users] edit time timestamp

Hans design5 at softflow.co.uk
Tue Oct 16 15:16:02 CDT 2007


Tuesday, October 16, 2007, 8:46:06 PM, Tony wrote:

> That gives the last time the page was edited, regardless of when the
> {$LastModified} was first added to the page.

> I need something like "~~~~" that actually replaces the markup string
> (i.e. "~~~~") when the SAVE button is clicked, replacing it with text
> including the actual time of that SAVE button click.

sorry.

you can create a ROS pattern and markup, similar to ~~~
add to config.php:

  $ROSPatterns['/(?<!~)~@~(?!~)/e'] = "FmtPageName('\$CurrentTime', \$pagename)";
  Markup('~@~','<links','/(?<!~)~@~(?!~)/',"$CurrentTime");

then use ~@~  as a timestamp markup.


Hans




More information about the pmwiki-users mailing list