[pmwiki-users] date markup

Hans design5 at softflow.co.uk
Thu Mar 6 09:33:51 CST 2008


Thursday, March 6, 2008, 1:45:57 PM, Sameer Kumar wrote:

> Just like the "~~~~" markup inserts the Author name and a date stamp,
> and "~~~" inserts only the AuthId, I would like to have some markup only
> for the date stamp.

> For example, one could use "~~" to insert the date. 

try

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

this is adapted from the other ones on scripts/author.php.

the markup defines ~~ as cuurent time, and the ROS pattern addition
will replace the ~~ with the time string on page save.
(ROS = Replace On Save)


  ~Hans




More information about the pmwiki-users mailing list