开发者

Inserting current timestamp when editing a page in Dokuwiki

Is it possible to insert the current timestamp while editing a page in Dokuwiki?

I am looking for some macro (for e.g. ~TIMESTAMP~), which will be replaced with the current开发者_如何学Go timestamp when the page is saved (and NOT a command/plugin which fetches it each time the page is saved.


There are several macros of this kind, but they are not directly available.

The page namespace templates describes how to set up namespace-level template files that automatically substitute some expressions (such as @USER@ or @DATE@) when creating a new page in that directory. It should not be hard to adapt those to the format you desire.

Another choice would be adapt something from the var plugin so that the instructions it generates are converted and saved as text during a page preview or save. It would require converting the plugin from a "syntax" plugin to an "action" plugin.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜