This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.
Closed
Implemented
FS#2313 Display the most recent revision if a revision timestamp is given.
Backend
2011-08-19dominik
The revision of a page is the unix timestamp of the edit. So you can pass the a revision number by giving the ?rev=timestamp parameter.
This only works if the exact timestamp exists for the page.
In example we have a page with the revisions: 10, 20, 30, 40.
Now you can access the revisions with ?rev=10, ?rev=20...
But if you give a revision like 14, DokuWiki will show a "No such revision".
I thing DokuWiki should pick the nearest timestamp in the past to the given revision.
In the example from above the revision number 14 will result in display revision 10.
The benefit of this way are:
1) you can see how a page looked at a given time.
But not only the page, it may be nice to see the hole wiki (link color, sidebars etc) on a specific data. By clicking on a link of an old page, you could show the other page in version of the same date.
Simply a browseable version of the wiki on a specific date in the past.
(The old pages may show a hint of the date currently shown)
2) The new media revisions could use the same way to store revisions.
The images and files on a old page could be the same as there originally were.
ATM you see the latest version of the image (ok ATM there are no media revisions at all ;-)).
2013-01-26ChrisS
I like this idea. I'm not sure its best applied by messing with the 'rev' parameter.
An alternative is to handle it with a different parameter. e.g. at_date = 20120101.
Then the discussion becomes should it be part of dokuwiki or a plugin? It would be relatively straightforward for a plugin to determine the correct 'rev' for a page given an 'at_date'. In the core we could add a help function to assist with that, getRevFromDate(pageid,date).