[pmwiki-users] browse older revisions?
Christopher League
league at contrapunctus.net
Thu Jun 22 21:20:58 CDT 2006
Hello, I have been configuring my first PmWiki for the past day or
so, and I just joined the list today. I've been very impressed with
its flexibility and power; I started out trying to mold MediaWiki to
suit my needs, but I'm much happier with Pm.
Anyway, there's one feature that I can't figure out how to do with
Pm. I've search the Cookbook and other documentation, but came up
empty.
I'd like to be able to browse through older revisions of a page. The
history (action=diff) gives a nice summary of what has changed. I
can restore any of those old versions, but I cannot retrieve just to
look at them. (I know I can restore and then look at it in the edit
box before hitting cancel.. that's not what I want.)
Wikipedia has a "Permanent link" feature that lets you retrieve the
precise version of the page you're looking at now, so you can come
back to it even after the page evolves. When viewing an older
version, a prominent message at the top tells you that it isn't the
newest, and provides links to newest, previous, and next revisions.
It would seem that all the information to do this is already
available, I just haven't found an interface for it.
I'm capable in PHP, so I started looking into how one might
accomplish this, for example by optionally calling RestorePage in
HandleBrowse or HandleSource in response to a request ?rev=1113498764
(with the timestamp of the revision you want). I got this to work,
sort of, in some cases, but it's going to take a good bit more
digging and deciphering to get it right.
So, I'm wondering: is there a recipe that already does this, that I
somehow missed? If not, is my hack on the right track, or am I
headed for madness? If I get it to work, I'll certainly post diffs
here and/or on the wiki for comment.
[If I were designing this from the ground up, more manageable
versions numbers would be helpful (revision 1, 2, 3, ...) but I think
the timestamps already in the data files will do the job.]
Thanks!
Chris
More information about the pmwiki-users
mailing list