PDA

View Full Version : Newbie question


hmar
05-20-2008, 07:28 PM
Hi, I have searched the forums, and not found this. I am looking for a way to incrementally number each revision of pages, so that when I make a new page, say "Hello" it is "Hello V1" and than subsequent edits ad 1 to the number.
As a second option, I could live with making it print revision dates, but I can't seem to get that to work either. When I check "Show Page Modified Info" I get "Retrieved from "http://xxx.wik.is/""

Anyone have any thoughts? I will be running a local copy on one of my servers, if that makes it easier.

Thanks

Guerric
05-21-2008, 06:39 PM
This type of functionality is not currently supported. Each page stores the previous revisions and can be accessed by the "Page Last Modified" link. What are you trying to achieve with that kind of page title naming?

hmar
05-22-2008, 12:29 PM
Hi, thanks for your reply.
We are trying to set up a repository for certification documents. The requirement I was given was that each document created (which will be editable by several people?) must have the version number clearly printed on it, and that this must be automatic, so that human error can't be a factor. I gather we want to know, when looking at a printed document, that it is the most up to date version.

mhoydis
05-22-2008, 03:47 PM
There's no built-in way to do this. (edit: I'm pretty sure!)
But you could do something with deki script, I bet.
Do a wiki.text of the page's URL with &action=history appended to the end. Then, parse for the number of lines containing "View version".
This could be a little hacky way to count the revisions, and the result would be automatic/dynamic.

Guerric
05-22-2008, 06:27 PM
Without too much effort you could make a dekiscript extension to get the revision from the api:

http://YOURWIKI/@api/deki/pages/{ID}/revisions?dream.out.select=//page

SteveB
05-25-2008, 06:34 PM
There is a better way using DekiScript. I just created FAQ page about it (just for you! :) ). Check it out:
http://wiki.opengarden.org/index.php?title=Deki_Wiki/DekiScript/FAQ/How_do_I...Show_the_revision_number_for_the_curren t_page%3F