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
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users