[Moin-user] Can one set the creation and modify dates of an article?

R.Bauer rb.proj at gmail.com
Wed Feb 10 09:47:24 EST 2010


Chris G schrieb:
> On Tue, Feb 09, 2010 at 02:19:21PM -0800, Eric Johnson wrote:
>> On 02/09/2010 02:11 PM, Chris G wrote:
>>> I want to put some articles into my wiki and 'pretend' they were put
>>> there a long time ago so that the date sequence of articles makes
>>> sense (this is for holiday narratives and things like that).
>>>
>>> Can this be done in moinmoin, i.e. is there some sort of macro or
>>> action one can use to allow one to put a date into an article which
>>> would get used as its creation and/or modify date?
>>>
>>> Something like:-
>>>
>>>     <<CreationDate(2009-01-04)>>
>>>
>>>   
>> I believe that MoinMoin gets this information from the "edit-log" file
>> in each page folder.  With direct access to the raw data, you can dummy
>> up whatever "history" you want.
>>
>> You also want to put the same entries in the "edit-log" file for the
>> whole wiki.
>>
> So I want a macro/plugin that allows me to set the information that
> gets written to the edit-log files.  I don't fancy manipulating them
> directly as the dates are in 'seconds since 1970-01-01' format by the
> look of it.
> 

@DATE@ or @SIG@ at the time you write the article (HelpOnVariables)

A macro showing the first entry of the edit log should not be that
complicated. As a starting point look at the example of
http://moinmo.in/MoinAPI/Beispiele#logfile.editlog

cheers
Reimar





More information about the Moin-user mailing list